Tag Archive: c#.net Code Examples

Aug 21

C# Simple Delegate Example

C# Simple Delegate Example A delegate in C# is similar to a function pointer in C or C++. Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate object. The delegate object can then be passed to code which can call the referenced method, without having to know at …

Continue reading »

Permanent link to this article: http://www.zappmania.in/2016/08/21/c-sharp-simple-delegate-example.htm

Aug 21

Combine Two Delegates C#-Example

Combine Two Delegates C# A delegate in C# is similar to a function pointer in C or C++. Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate object. The delegate object can then be passed to code which can call the referenced method, without having to know at …

Continue reading »

Permanent link to this article: http://www.zappmania.in/2016/08/21/combine-two-delegates-c-sharp-example.htm

Aug 21

LINQ Aggregate Methods C#-Example

LINQ Aggregate Methods C# LINQ is language integrated query which allow programmers to query various objects without worrying about underlying implementations of these objects. There are number of LINQ Aggregate methods defined in Enumerable class

Continue reading »

Permanent link to this article: http://www.zappmania.in/2016/08/21/linq-aggregate-methods-c-sharp-example.htm

Jul 31

List all supported cultures name -C#

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://www.zappmania.in/2013/07/31/list-all-supported-cultures-name-c.htm

Jul 28

Create properties in C#

Create properties in C# Property is used to read or write fields or attributes of a class. In our User class web have four fields id, username, firstName, lastName. Next we create properties for setting and getting the value of the property.    

 

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

Older posts «