Notice
Recent Posts
Recent Comments
Link
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
Archives
Today
Total
관리 메뉴

게임 프로그래밍

[C#] Array to list 본문

프로그래밍/C#

[C#] Array to list

Junwe 2020. 4. 1. 02:20

Array를 list로 변환하는 방법에는 몇가지가 있습니다.

 

1. List list = ints.OfType().ToList();

2. List list = new List(new int[] { 1, 2, 3, 4, 5});

3. list.AddRange(new int[] { 1,2,3,4,5 } );

'프로그래밍 > C#' 카테고리의 다른 글

[Unity] Custom TileMap Creator(2)  (0) 2020.03.17
[C#] 더블버퍼링이란?  (0) 2020.03.07
[C#] 확장 메세드  (0) 2020.03.06
[C#] Enum 반복문  (0) 2020.03.02
[C#] is, as에 대해서  (0) 2020.03.01
Comments