3
C# 3.5에서 리플렉션을 사용하여 객체의 유형이 List<MyObject>
인지 확인하는 방법이 있습니까? 예 :C#에서 목록 유형을 결정하십시오
Type type = customerList.GetType();
//what should I do with type here to determine if customerList is List<Customer> ?
고마워요.
감사합니다 : 당신은 모두가
Type
인 경우,을 또는 : 대답 '이것을
List<MyObject>?
이다'하려면 정상으로is
연산자를 사용 – Victor