가능한 중복 :
How To Test if a Type is Anonymous?
Anonymous Types - Are there any distingushing characteristics?.NET Reflection으로 익명의 개체를 찾는 방법은 무엇입니까?
타입 객체가 익명의 객체를 참조하는 경우 감지 할 수있는 방법이 있나요? 익명 형식이 단지 컴파일시 이슈 때문에
var obj = new { A = "Hello" };
Type x = obj.GetType();
// is there something equivalent to x.IsAnonymous?
Assert.IsTrue(x.IsAnonymous);
것을이 속성으로 장식 된 유형도
true
를 반환합니다 물론는 여기를 참조하십시오 : http://stackoverflow.com/questions/ 2483023/type-is-an-type-an-anonymous 테스트 방법 – annakata