The keyword this is the name of a reference variable that an object can use to refer to itself.
Blog
It is permissible to pass null as an argument to a reference…
It is permissible to pass null as an argument to a reference type parameter in a method.
Given the following declarations:enum Days { Mon, Tue, Wed,…
Given the following declarations:enum Days { Mon, Tue, Wed, Thur, Fri, Sat };Days day1 = Days.Tue;int n = 3;The following Boolean expression is valid:day1 < n
If two methods have the same names and parameter lists, you…
If two methods have the same names and parameter lists, you cannot overload them by just giving them different return types.
The set accessor is executed any time that a property is rea…
The set accessor is executed any time that a property is read.
Constructors cannot be overloaded which means a class can on…
Constructors cannot be overloaded which means a class can only have one constructor.
In code that creates an instance of a class, you access the…
In code that creates an instance of a class, you access the class object’s properties in the same way that you would access public variables.
A class’s constructor header must specify a return type of v…
A class’s constructor header must specify a return type of void.
When you call a string object’s Split method, the method ext…
When you call a string object’s Split method, the method extracts tokens from the string and returns them as integers.
In an interpolated string, the minimum field width is the mi…
In an interpolated string, the minimum field width is the minimum number of spaces that should be used to display a value, and if the value is too large to fit in the specified field width, the number will be truncated.