Tag: C# Examples

Aug 18

Multilevel Inheritance in C#-Example

C-Sharp

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

Jul 31

List all supported cultures name -C#

C-Sharp

List all supported cultures name Below example will show you how to obtain the entire supported culture names. We use theSystem.Globalization.CultureInfo class to get this information. It provides a method called GetCultures() that returns an array of CultureInfo. From this object we can get the culture name in languageCode-countryCode format and a culture name in English. Let see the code snippet …

Continue reading »

Permanent link to this article: http://zappmania.in/2013/07/31/list-all-supported-cultures-name-c.htm

Jul 28

Create an auto implemented properties C#

C-Sharp

Create an auto implemented properties C#   Starting from C# 3 we can create an auto-implemented properties. This make our code look simpler and easier to read. When we create an auto-implemented properties the compiler will create a private, anonymous backing field that can only be accessed through the property’s get and set accessors.      

  …

Continue reading »

Permanent link to this article: http://zappmania.in/2013/07/28/create-an-auto-implemented-properties-c.htm