문자열 형식의 숫자 목록을 List 개체로 가져 오는 방법이 필요합니다. 나는 SomeCoolMethodToParseTheText
자신을 작성하지 않도록 .NET 라이브러리에 뭔가줄 바꾸기가있는 텍스트를 목록으로 변환 <String>
string ids = "10\r\n11\r\n12\r\n13\r\n14\r\n15\r\n16\r\n17\r\n18\r\n19";
List<String> idList = new List<String>();
idList.SomeCoolMethodToParseTheText(ids); <------+
|
foreach (string id in idList) |
{ |
// Do stuff with each id. |
} |
|
// This is the Method that I need ----------------+
있습니까 : 여기
은 예입니다?
이 식별자는 항상 숫자 있습니까 사용해보십시오 것? – VoodooChild
@VoodooChild - 예 – Vaccano
SomeCoolMethodToParseTheText === 나누기 – Hogan