tutlane.com
C# Static Class with Examples
2 min · · In c#, a static class can be created by using static modifier and the static class can contain only static members. Generally, the static class is same as non-static class, but only difference is the…
tutlane.com
C# Static Keyword
2 min · · In c#, static is a keyword or a modifier which is used to make a class or methods or a variable properties as not instantiable that means we cannot instantiate the items which we declared with a…
tutlane.com
C# this Keyword
1 min · · In c#, this keyword is used to refer the current instance of class and by using this keyword we can pass current instance of class as a parameter to the other methods. In case, if class contains a…
tutlane.com
C# Destructor with Examples
1 min · · In c#, Destructor is a special method of a class and it is used in a class to destroy the object or instances of classes. The destructor in c# will invoke automatically whenever the class instances…
tutlane.com
C# Private Constructor with Examples
2 min · · In c#, Private Constructor is a special instance constructor and it is used in a classes that contains only static members. If a class contains one or more private constructors and no public…
tutlane.com
C# Static Constructor with Examples
2 min · · In c#, Static Constructor is used to perform a particular action only once throughout the application. If we declare a constructor as static, then it will be invoked only once irrespective of number…
tutlane.com
C# Copy Constructor with Examples
2 min · · In c#, Copy Constructor is a parameterized constructor which contains a parameter of same class type. The copy constructor in c# is useful whenever we want to initialize a new instance to the values…
tutlane.com
C# Constructors with Examples
4 min · · In c#, Constructor is a method which will invoke automatically whenever an instance of class or struct is created. The constructor will have a same name as the class or struct and it useful to…
tutlane.com
C# Classes and Objects with Examples
3 min · · In c#, Classes and Objects are interrelated. The class in c# is nothing but a collection of various data members (fields, properties, etc.) and member functions. The object in c# is an instance of a…