MSDN的解释:.NET Framework 是为其运行的应用程序提供各种服务的托管执行环境
CLR是公共语言运行时
CLR是.NET Framework的核心
IL/MSIL/CIL Microsoft Intermediate Language 微软中间语言(IL是MSIL的缩写,译为中间语言)
CTS是通用类型系统(Common Type System)
CLS是公共语言定义(Common Language Specification)
CLR是公共语言运行时(Common Language Runtime)
JIT是时编译器(Just in time)
CLI是公共语言基础架构(Common Language Infrastructure)
BCL是基础类库(Base Class Library)
FCL是框架类库(Framework Class Library)
一维数组
int[] a = { 1, 2, 3, 4, 5, 6, 7, 8 };
for (int i = 0; i < a.Length; i = i + 2)
{
Console.WriteLine(a[i]);
}
二维数组
int[,] arr1 = new int[2, 3];
int[,] arr2 = new int[2, 3] { { 123, 11, 22 }, { 123, 11, 11 } };
int[,] arr3 =
{
{123,11,22 },
{44,33,55 }
};
for(int i = 0; i < 2; i++)
{
for(int j=0;j<3;j++)
{
Console.Write(arr3[i, j] + "\t");
}
Console.WriteLine();
}
三维数组
int[][] arrs1 =
{
new int[] {1,2},
new int[] {1,2,3,4},
new int[] {1,2,3,4,5,6,7}
};
for (int i = 0; i < arrs1.Length; i++)
{
for(int j = 0; j < arrs1[i].Length; j++)
{
Console.Write(arrs1[i][j] + "\t");
}
Console.WriteLine();
}
原文地址:https://www.cnblogs.com/lihaokang/p/11140583.html