If a reference field is declared as readonly, it is guaranteed that the values of the properties and or fields of the object that the field refers to cannot be changed.
Blog
The keyword this is the name of a reference variable that an…
The keyword this is the name of a reference variable that an object can use to refer to itself.
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.