一、變量
C#共有其中變量類型有:靜態(tài)變量、實類變量、數(shù)組元素、數(shù)值參數(shù)、引用參數(shù)、輸出參數(shù)和局部變量
先定義一個簡單的類來說明,如下:
public class VariableDefine { private static uint variableUInt; public static uint VariableUInt { get => variableUInt; set => variableUInt = value; } string VariableStr; public VariableDefine(string version) { VariableStr = version; } public static void Fun() { Console.WriteLine(variableUInt); } /// <summary> /// 變量類型 /// </summary> /// <param name="intArray">intArray[0]數(shù)組元素</param> /// <param name="a">數(shù)值參數(shù)</param> /// <param name="b">引用類型</param> /// <param name="c">輸出參數(shù)</param> public void Fun(int[] intArray, int a, ref int&nb