C# 1001 notes
When to use Struct over Class in C# (part 1)The Struct is a similar and lighter version of the class...
Читать далееCode-Block Level ScopeA variable declared within a loop or any block within brackets has the code-...
Читать далееMethod Level ScopeA variable declared within a method has a method level Scope. It is also known a...
Читать далееIn C#, the Scope of the variable determines the accessibility of the variable to a particular part...
Читать далееUsing DefaultValue AttributeYou can assign the default value using the DefaultValueAttribute attri...
Читать далееUsing Property SetterThe following example sets the default value to a private property field.
Читать далееDefault Value of Auto-Implemented PropertyIn C# 6.0 or higher versions, assign the inline default...
Читать далееSeed ValueThe Random class uses the seed value as a starting value for the pseudo-random number ge...
Читать далееGenerate Random Floating Point NumberUse the NextDouble() method to get a random floating-point nu...
Читать далееGenerate Random Number in Min to Max RangeUse the Next(int min, int max) overload method to get a...
Читать далее