가능한 중복 :
How can I get generic Type from a string representation?C#에서 목록 <String>을 가져 오는 방법은 무엇입니까?
가 어떻게 Type.GetType()
를 사용하여 C#에서 "List<String>"
의 유형을받을 수 있나요?
은 내가 이미 시도 : 난의 종류를 얻고 값 때문에 typeof
을 사용할 수 없습니다
Type.GetType("List<String>");
Type.GetType("System.Collections.Generic.List.String"); // Or [String]
참고 문자열입니다.
꺾쇠 괄호를 텍스트 단락에 표시하려면 역청사를 사용하여 코드로 서식을 지정해야합니다 (방금 편집 한대로). – AakashM
다음 질문을 확인하십시오. http://stackoverflow.com/questions/557340/c-generic-list-t-how-to-get-the-type-of-t – Peanut