Getting Started Start by running Visual Studio 2010 and select New Project from the Start page. Visual Studio 2010 – Start Page Creating Your […]
Category: CSharp Tutorial
What is Construction Overloading in C#
Constructor Overloading Constructor oveloading enables to have constructors with different sets of parameters. Example below: public class Employee { public Employee() { // This […]
Naming Conventions -C# Coding Guidelines
C#.NET Coding Guidelines Naming Conventions 1. Prefix member variables with the underscore ‘_’. 2. Do not prefix member variables with “this”.3. Use camelCasing for member […]
Platform Invoke – C#
Platform Invoke – C# A platform invoke call to an unmanaged DLL function When platform invoke calls an unmanaged function, it performs the following sequence […]
Why C# does not support multiple class inheritance ?
Why C# does not support multiple class inheritance ? Multiple inheritances are not supported in C#. Consider the below example. public class Class1 { public […]
What is use of private constructor in C# ?
What is use of private constructor in C# ? If a class contains only static members and isn’t intended to be instantiated, adding an empty […]
What is CharEnumerator in C# ?
CharEnumerator is an object in C# that can be used to enumerate through all the characters of a string. Sample Code : string str = […]
What is params keyword in C# ?
The params keyword lets you specify a method parameter that takes a variable number of arguments. No additional parameters are permitted after the params keyword […]
C# FAQS : Class Modifiers , Static constructors , Destructors , Indexers
C# FAQS : Class Modifiers , Static constructors , Destructors , Indexers Class Various class modifiers are listed below : new public protected internal private […]
Singleton Design Pattern in C#
Singleton Design Pattern in C# Singleton Design pattern ensures a class has only one instance and provide a global point of access to it. Simple […]
