1. c # nested block and variable declaration Problems
Declare the variable a1 outside the nested block, and declare the variable a2 in the nested block.
In c #, no matter the nesting level, another local variable with the same name cannot be declared within the effective range of a name.
2. Reference parameters of method parameters
The ref modifier is used for both declaration and call.
The real parameter must be a variable.
3. Parameter array of method parameters
A parameter list can contain only one parameter array.
If yes, it must be the last parameter.
Use the params Modifier
4. method call: provides real parameters in two ways
Provide real parameters of the specified type with commas (,).
Array of elements of this data type
5. Sealing
Can only be used as an independent class
Cannot be used as a base class
Use the sealed Modifier