List<string> Inventory = new List<string>();
Inventory.Add ("단검");
Inventory.Add ("사과");
Console.WriteLine(Inventory);
이렇게 하면
System.Collections.Generic.List`1[System.String]
이런 결과가 출력이 되는데
List에 있는 string 값을
"단검, 사과"
이런 식으로 출력하려면 어떻게 해야 해요?
List<string> Inventory = new List<string>();
Inventory.Add ("단검");
Inventory.Add ("사과");
Console.WriteLine(Inventory);
이렇게 하면
System.Collections.Generic.List`1[System.String]
이런 결과가 출력이 되는데
List에 있는 string 값을
"단검, 사과"
이런 식으로 출력하려면 어떻게 해야 해요?
굉장히 쉬운데 안알려줌
왜...
string.Join
아 왜알려주냐고
걱정마 이것만 보곤 몰라서 string.Join 검색해보는 중이야
뭐야 엄청 간단했네...ㄷㄷ;;;
즐코딩하렴
고마워..ㅎㅎㅎ