C# Class PublicBroadcasting.Impl.ExtensionMethods

Afficher le fichier Open project: kevin-montrose/public-broadcasting

Méthodes publiques

Méthode Description
IsMappableToDictionary ( this from, Type to ) : bool

Private Methods

Méthode Description
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

Method Details

IsMappableToDictionary() public static méthode

public static IsMappableToDictionary ( this from, Type to ) : bool
from this
to System.Type
Résultat bool