0
을 사용하여 Int
을 UInt
으로 캐스팅 할 수없는 이유를 아는 사람이 있습니까?예기치 않은`지정된 캐스트가 유효하지 않습니다 .` 예외 (Linq)
var myIntList = new List<int>();
myIntList.Add(1);
myIntList.Add(2);
myIntList.Add(3);
var myUIntList = myIntList.Cast<uint>().ToList();
IT는 지정한 캐스트가 유효하지 않습니다 발생합니다. Select()
을 사용할 때 (ofcourse)을 사용할 수 있습니다.
var myIntList = new List<int>();
myIntList.Add(1);
myIntList.Add(2);
myIntList.Add(3);
var myUIntList = myIntList.Select(i => (uint)i).ToList();
(이는 버그 미구현 기능입니까?)
그게 전부 확실합니다. 나는 약간의 독서를 할 것이다. –