Aug 21

LINQ Calculate Average File Size in Folder C#-Example

LINQ Calculate Size of Folder

LINQ is language integrated query which allow programmers to query various objects without worrying about underlying implementations of these objects.

Below C# Program Calculates average file Size of folder using LINQ. In other words the average size of file in a folder is found using LINQ functions.
Continue reading

Permanent link to this article: http://zappmania.in/2016/08/21/linq-calculate-average-file-size-c-sharp-example.htm

Aug 19

Check Leap Year C#-Example

Program to Check Leap Year

This C# Program Checks Whether the Entered Year is a Leap Year or Not.
When A year is divided by 4, If remainder is 0 then the year is called a leap year.
Below is a C# Program to Check Whether the Entered Year is a Leap Year or Not.

Continue reading

Permanent link to this article: http://zappmania.in/2016/08/19/check-leap-year-c-example.htm

Aug 18

Single Inheritance in C#-Example

In single inheritance we have single base class that is inherited by the derived class and the derived class has all the features of the base class and can add some new features and italso depends on the access specifier that is used at the time of base class inheritance.
Continue reading

Permanent link to this article: http://zappmania.in/2016/08/18/single-inheritance-c-example.htm

Aug 18

Multilevel Inheritance in C#-Example

This C# Program Demonstrates Multilevel Inheritance. Here when a derived class is created from another derived class, then that inheritance is called as multi level inheritance.
Here is source code of the C# Program to Demonstrate Multilevel Inheritance. The C# program is successfully compiled and executed with Microsoft Visual Studio.
Continue reading

Permanent link to this article: http://zappmania.in/2016/08/18/multilevel-inheritance-in-c-example.htm

Aug 18

DateTime Formatting in C#

The DateTime class is most useful for our time based programs. But most of the time we don’t know how to use the it with appropriate formats.

First of all there are different custom format specifiers for formatting datetime.
list goes like below : Continue reading

Permanent link to this article: http://zappmania.in/2016/08/18/datetime-formatting-in-c.htm