C# was developed in the year 2002 with the .NET Framework 1.0 and has since continued to develop with enhanced features and performance. C# is a general-purpose, contemporary, and object-oriented programming language. It was created by Microsoft as part of the.NET program and was authorized by the ECMA (European Computer Manufacturers Association) and the ISO […]
C# 3d array
In C# arrays can have multiple dimensions, arrays with more than one dimension. C# can support nearly 32 dimensions for multidimensional arrays. To declare a multidimensional array, use commas between the square brackets to delimit the array’s dimensions. Arrays can be classified according to their dimensions. The dimension of an array can be identified by counting […]
Collection Initializers in C# 3.0
C# Collection Initializers enable you to add items in the collection at the time of instantiation of the collection. Collection can be a List or Dictionary or any other available C# collection. Till C# 2.0, for creating a collection of Employees we normally do Assuming that there is an overloaded constructor for the Employee class.Here […]
C# 3.0 Object Initializers
Object Initializer, a new technique to initialize an object of a class or collection, was introduced in the .NET 3.5 release (C# 3.0). Object Initializer in C#.NET C# Object Initializers allow you to initialize the object members without an overloaded constructor or without setting the properties after object creation. This means the initial value of […]
Automatic Properties In C# 3.0
In C# Properties are used to expose the local member variables. Till C# 2.0 version properties are defined by declaring a private member variable first and then declaring the property as stated below private string empName; Public string Empname { get { return empName; } set { empName= value; } } C# Automatic property But, […]
What is Friends Assembly in C#
An assembly that can access the Friend type(Visual Basic) or internal type (C#) member information are referred to as a “friend assembly“. You don’t have to mark types and members as public in order for them to be accessed by other assemblies if you identify an assembly as a friend assembly. Friend assembly is very […]