The set accessor is executed any time that a property is read.
Blog
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.
In an interpolated string, if you want a number to be left-j…
In an interpolated string, if you want a number to be left-justified within its field, you insert a minus sign (-) before the field width specifier.
The char data type provides a single method that determines…
The char data type provides a single method that determines whether a character is a letter or a number.
You can use a subscript expression such as name[3] = ‘A’ to…
You can use a subscript expression such as name[3] = ‘A’ to change the value of a character within a string.
When reading the contents of a file into an array, your loop…
When reading the contents of a file into an array, your loop must always iterate until the array is full.