George John has Published 1167 Articles

List files recursively in C#

George John

George John

Updated on 07-Apr-2020 10:06:49

845 Views

To get the list of files in a directory, use the SearchOptions.AllDirectories in C#.Firstly, set the directory for which you want the files −string[] myFiles = Directory.GetFiles("D:\New\", "*.*", SearchOption.AllDirectories);The following is an example displaying files from the above mentioned directory −Exampleusing System; using System.Linq; using System.IO; class Program {   ... Read More

What is run time polymorphism in C#?

George John

George John

Updated on 18-Mar-2020 06:22:06

2K+ Views

Runtime polymorphism has method overriding that is also known as dynamic binding or late binding. It is implemented by abstract classes and virtual functions.Abstract ClassesAbstract classes contain abstract methods, which are implemented by the derived class.Let us see an example of abstract classes that implements run time polymorphism −Example Live Demousing System; namespace PolymorphismApplication ... Read More

Fade Out Up Animation Effect with CSS

George John

George John

Updated on 16-Mar-2020 08:12:15

151 Views

To implement Fade Out Up Animation Effect on an image with CSS, you can try to run the following codeExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat; ... Read More

Bounce Out Left Animation Effect with CSS

George John

George John

Updated on 16-Mar-2020 08:03:35

71 Views

To implement Bounce Out Left Animation Effect with CSS, you can try to run the following codeExample                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;         ... Read More

CSS pause-before property

George John

George John

Updated on 16-Mar-2020 07:49:29

77 Views

This property specifies a pause to be observed before speaking an element's content. The possible values aretime − Expresses the pause in absolute time units (seconds and milliseconds).percentage − Refers to the inverse of the value of the speech-rate property. For example, if the speech-rate is 120 words per minute ... Read More

CSS border-top-right-radius property

George John

George John

Updated on 16-Mar-2020 07:42:59

73 Views

Use the border-top-right radius property in CSS to set the top right radius border. You can try to run the following code to implement border-top-right-radius property −ExampleLive Demo                    #rcorner {             border-radius: 25px;             border-top-right-radius: 45px;             background: orange;             padding: 20px;             width: 200px;             height: 150px;          }                     Rounded corners!    

CSS speak-numeral property

George John

George John

Updated on 16-Mar-2020 07:28:32

118 Views

The speak-numeral property controls how numerals are spoken.The possible values aredigits − Speak the numeral as individual digits. Thus, "237" is spoken "Two Three Seven".continuous − Speak the numeral as a full number. Thus, "237" is spoken "Two hundred thirty seven". Word representations are language-dependent.

Controlling Pagination with CSS

George John

George John

Updated on 16-Mar-2020 07:21:39

293 Views

To control pagination, use the page-break-before, page-break-after, and page-break-inside properties.Both the page-break-before and page-break-after accept the auto, always, avoid, left, and right keywords.The keyword auto is the default; it lets the browser generate page breaks as needed. The keyword always forces a page break before or after the element, while avoid suppresses a ... Read More

How to specify the target media types of a set of CSS rules

George John

George John

Updated on 16-Mar-2020 07:11:48

115 Views

The media attribute on the Link element specifies the target media of an external style sheet −Example    

Fade In Right Animation Effect with CSS

George John

George John

Updated on 13-Mar-2020 13:25:42

272 Views

To implement Fade In Right Animation Effect on an image with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             ... Read More

Advertisements