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...

Читать далее