.NET Framework infrastructure

MSDN explanation: .NET Framework provides a variety of services for its applications running managed execution environment
CLR is the common language runtime
CLR is the heart of the .NET Framework
IL / MSIL / CIL Microsoft Intermediate Language Microsoft Intermediate Language (IL is the abbreviation of MSIL, translated into an intermediate language)
CTS is a common type system (the Common the Type the System)
the CLS is common language definition (the Common Language Specification)
the CLR is the common language runtime (Common Language Runtime)
JIT is a compiler (the Just in Time)
CLI is the Common Language Infrastructure (Common Language Infrastructure)
BCL is the base class library (Base Class Library)
the FCL framework library (Framework Class Library)
 
One-dimensional array
int[] a = { 1, 2, 3, 4, 5, 6, 7, 8 };
 for (int i = 0; i < a.Length; i = i + 2)
 {
    Console.WriteLine(a[i]);
 }
Two-dimensional array
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();
}
Three-dimensional array
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();
}

Guess you like

Origin www.cnblogs.com/lihaokang/p/11140583.html