C# 클래스 PublicBroadcasting.Impl.ExtensionMethods

파일 보기 프로젝트 열기: kevin-montrose/public-broadcasting

공개 메소드들

메소드 설명
IsMappableToDictionary ( this from, Type to ) : bool

비공개 메소드들

메소드 설명
GetDictionaryInterface ( this t ) : Type
GetListInterface ( this t ) : Type
IsAnonymouseClass ( this type ) : bool

HACK: This is a best effort attempt to divine if a type is anonymous based on the language spec. Reference section 7.6.10.6 of the C# language spec as of 2012/11/19 It checks: - is a class - descends directly from object - has [CompilerGenerated] - has a single constructor - that constructor takes exactly the same parameters as its public properties - all public properties are not writable - has a private field for every public property - overrides Equals(object) - overrides GetHashCode()

IsDictionary ( this t ) : bool
IsList ( this t ) : bool
IsOverride ( this method ) : bool
IsSimple ( this t ) : bool
ToArray ( this l, Type elementType ) : object

메소드 상세

IsMappableToDictionary() 공개 정적인 메소드

public static IsMappableToDictionary ( this from, Type to ) : bool
from this
to System.Type
리턴 bool