📜  .net 框架备忘单 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:22.745000             🧑  作者: Mango

代码示例1
// Declare a single-dimensional array of length 5 of type int
int[] array1 = new int[5];

// Declare and set array element values
int[] array2 = new int[] { 1, 3, 5, 7, 9 };

// Alternative syntax
int[] array3 = { 1, 2, 3, 4, 5, 6 };