C# Class System.TypeExtensions

Afficher le fichier Open project: TargetProcess/Target-Process-Plugins

Méthodes publiques

Méthode Description
DefaultValue ( this type ) : object
GetCommonBaseInterfaceType ( IEnumerable types ) : Maybe
GetInterfaceProperties ( this type ) : IEnumerable
GetMemberInterfacewise ( this type, string name ) : System.Reflection.MemberInfo[]

Same as Type.GetMember but return members from base interfaces E.g. typeof(ICollection).GetMember("GetEnumerator") returns [] while typeof(ICollection).GetMemberInterfacewise("GetEnumerator") returns MemberInfo of IEnumerable.GetEnumerator

ResultType ( this memberInfo ) : Type

Method Details

DefaultValue() public static méthode

public static DefaultValue ( this type ) : object
type this
Résultat object

GetCommonBaseInterfaceType() public static méthode

public static GetCommonBaseInterfaceType ( IEnumerable types ) : Maybe
types IEnumerable
Résultat Maybe

GetInterfaceProperties() public static méthode

public static GetInterfaceProperties ( this type ) : IEnumerable
type this
Résultat IEnumerable

GetMemberInterfacewise() public static méthode

Same as Type.GetMember but return members from base interfaces E.g. typeof(ICollection).GetMember("GetEnumerator") returns [] while typeof(ICollection).GetMemberInterfacewise("GetEnumerator") returns MemberInfo of IEnumerable.GetEnumerator
public static GetMemberInterfacewise ( this type, string name ) : System.Reflection.MemberInfo[]
type this
name string
Résultat System.Reflection.MemberInfo[]

ResultType() public static méthode

public static ResultType ( this memberInfo ) : Type
memberInfo this
Résultat Type