Console.ReadLine()
Console.WriteLine()
foreach
//显式转换与隐式转换
checked/unchecked
Convert.ToDouble(val)
//枚举
enum <typeName>:<underlyingType>
{
..=..
}
struct <typeName>
{
Declaration
}
<baseType>[] <name> //数组
int[] Array = new int[10];
//不规则数组
int[][] Array;
Array = new int[2][];
Array[0] = new int[1];
Array[1] = new int[2];
<pre name="code" class="csharp"><baseType>[,,] <name>
//引用ref 输出out 实参也要带这两个关键字
//结构体函数
//委托是存储函数的引用类型
<pre name="code" class="csharp">int myInt = int32.Parse("100");
<pre name="code" class="csharp">string Directory = @"C:\Windows\";
char c = Directory[0];
<span style="font-family:SimSun;">//字符串连接 “+”号</span>
<span style="font-family:SimSun;"><string>.Substring(Start,Length);</span>
<span style="font-family:SimSun;"><string>.IndexOF(Char)/LastIndexOf(Char);</span>
<span style="font-family:SimSun;">//字符串比较<>=</span>
<span style="font-family:SimSun;"><string>.Equals(String)/ToLower/Join/Split/Trim/ToCharArray/ToUpper/PadLeft/PadRight;</span>
<span style="font-family:SimSun;">//const常量</span>