C# Class System.TypeExtensions

Datei anzeigen Open project: TargetProcess/Target-Process-Plugins

Public Methods

Method 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 method

public static DefaultValue ( this type ) : object
type this
return object

GetCommonBaseInterfaceType() public static method

public static GetCommonBaseInterfaceType ( IEnumerable types ) : Maybe
types IEnumerable
return Maybe

GetInterfaceProperties() public static method

public static GetInterfaceProperties ( this type ) : IEnumerable
type this
return IEnumerable

GetMemberInterfacewise() public static method

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
return System.Reflection.MemberInfo[]

ResultType() public static method

public static ResultType ( this memberInfo ) : Type
memberInfo this
return Type