// convert
string str = "3";
int number = Convert.ToInt32(str);
int number1 = Int32.Parse(str);
int number2= int.Parse(str);
// array
string[,] array2D = new string[3, 5];
string[,,] Cubes;
int[][] a = new int[3][];
a[0] = new int[10];
a[1] = new int[5];
a[2] = new int[20];
// writeln
Console.WriteLine(@"c:\temp");
Console.WriteLine($"Sum of {t2.Count} elements is {t2.Sum}.");
'Programming > C#' 카테고리의 다른 글
Action 사용하기 (0) | 2023.09.27 |
---|---|
현재시간(C#) (0) | 2023.09.05 |
Winform - // form 위에 form 설정 (0) | 2022.07.13 |
WPF에서 실행파일이 있는 경로 (0) | 2022.07.13 |
WPF 중복 실행 방지 (0) | 2021.12.02 |