C#学习参考手册
Hello World -- 您的第一个程序.....................................................................................................6 C# 程序的一般结构........................................................................................................................8 Main() 和命令行自变量............................................................... ...................................................9 命令行自变量................................................................................................................................10 显示命令行自变量.........................................................................................................................12 使用 foreach 存取命令行自变量.................................................................................................13 Main() 传回值...............................................................................................................................14 数据型别........................................................................................................................................15 在变量宣告中指定型别.................................................................................................................16 转型和型别转换.............................................................................................................................21 Boxing 和 Unboxing.....................................................................................................................23 使用 as 和 is 运算符进行安全转型...........................................................................................26 将字节数组转换为 int ..................................................................................................................28 将 string 转换为 int .....................................................................................................................30 在十六进制字符串和数字型别间转换.........................................................................................31 数组...............................................................................................................................................33 将数组当做对象.............................................................................................................................34 一维数组........................................................................................................................................35 多维数组........................................................................................................................................35 不规则数组....................................................................................................................................36 在数组上使用 foreach...................................................................................................................38 传递数组当做参数.........................................................................................................................39 使用 ref 和 out 传递数组...........................................................................................................41 ...................................................9 命令行自变量................................................................................................................................10 显示命令行自变量.........................................................................................................................12 使用 foreach 存取命令行自变量.................................................................................................13 Main() 传回值...............................................................................................................................14 数据型别........................................................................................................................................15 在变量宣告中指定型别.................................................................................................................16 转型和型别转换.............................................................................................................................21 Boxing 和 Unboxing.....................................................................................................................23 使用 as 和 is 运算符进行安全转型...........................................................................................26 将字节数组转换为 int ..................................................................................................................28 将 string 转换为 int .....................................................................................................................30 在十六进制字符串和数字型别间转换.........................................................................................31 数组...............................................................................................................................................33 将数组当做对象.............................................................................................................................34 一维数组........................................................................................................................................35 多维数组........................................................................................................................................35 不规则数组....................................................................................................................................36 在数组上使用 foreach...................................................................................................................38 传递数组当做参数.........................................................................................................................39 使用 ref 和 out 传递数组...........................................................................................................41