튜플과 함께 Dictionary를 매개 변수로 사용하고 있습니다.
Dictionary<int, List<Tuple<string, int>>> dict =
new Dictionary<int,List<Tuple<string,int>>>();
어떻게 목록 항목을 읽을 수 있습니다.
미리 감사드립니다.
foreach(var item in dict.Values)
{
foreach(var tuple in item)
{
var someString = tuple.Item1;
var someInt = tuple.Item2;
}
}
편집 : 또는이
var someList = dict[SOME KEY];
foreach(var tuple in someList)
{
var someString = tuple.Item1;
var someInt = tuple.Item2;
}
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다