C# Class indice.Edi.Utilities.TypeExtensions

显示文件 Open project: indice-co/EDI.Net

Public Methods

Method Description
Assembly ( this type ) : Assembly
AssignableToTypeName ( this type, string fullTypeName ) : bool
AssignableToTypeName ( this type, string fullTypeName, Type &match ) : bool
BaseType ( this type ) : Type
ContainsGenericParameters ( this type ) : bool
GetBaseDefinition ( this method ) : MethodInfo
GetConstructor ( this type, BindingFlags bindingFlags, object placeholder1, IList parameterTypes, object placeholder2 ) : ConstructorInfo
GetConstructor ( this type, IList parameterTypes ) : ConstructorInfo
GetConstructors ( this type ) : IEnumerable
GetConstructors ( this type, BindingFlags bindingFlags ) : IEnumerable
GetField ( this type, string member ) : MemberInfo
GetField ( this type, string member, BindingFlags bindingFlags ) : MemberInfo
GetFields ( this type ) : IEnumerable
GetFields ( this type, BindingFlags bindingFlags ) : IEnumerable
GetGenericArguments ( this type ) : System.Type[]
GetGetMethod ( this propertyInfo ) : MethodInfo
GetGetMethod ( this propertyInfo, bool nonPublic ) : MethodInfo
GetInterfaces ( this type ) : IEnumerable
GetMember ( this type, string name, MemberTypes memberType, BindingFlags bindingFlags ) : IEnumerable
GetMember ( this type, string member ) : System.Reflection.MemberInfo[]
GetMember ( this type, string member, BindingFlags bindingFlags ) : System.Reflection.MemberInfo[]
GetMethod ( this type, IList parameterTypes ) : MethodInfo
GetMethod ( this type, string name ) : MethodInfo
GetMethod ( this type, string name, BindingFlags bindingFlags ) : MethodInfo
GetMethod ( this type, string name, BindingFlags bindingFlags, object placeHolder1, IList parameterTypes, object placeHolder2 ) : MethodInfo
GetMethod ( this type, string name, IList parameterTypes ) : MethodInfo
GetMethods ( this type ) : IEnumerable
GetMethods ( this type, BindingFlags bindingFlags ) : IEnumerable
GetProperties ( this type, BindingFlags bindingFlags ) : IEnumerable
GetProperty ( this type, string name ) : PropertyInfo
GetProperty ( this type, string name, BindingFlags bindingFlags ) : PropertyInfo
GetProperty ( this type, string name, BindingFlags bindingFlags, object placeholder1, Type propertyType, IList indexParameters, object placeholder2 ) : PropertyInfo
GetSetMethod ( this propertyInfo ) : MethodInfo
GetSetMethod ( this propertyInfo, bool nonPublic ) : MethodInfo
IsAbstract ( this type ) : bool
IsAssignableFrom ( this type, Type c ) : bool
IsClass ( this type ) : bool
IsDefined ( this type, Type attributeType, bool inherit ) : bool
IsEnum ( this type ) : bool
IsGenericType ( this type ) : bool
IsGenericTypeDefinition ( this type ) : bool
IsInstanceOfType ( this type, object o ) : bool
IsInterface ( this type ) : bool
IsSealed ( this type ) : bool
IsSubclassOf ( this type, Type c ) : bool
IsValueType ( this type ) : bool
IsVisible ( this type ) : bool
MemberType ( this memberInfo ) : MemberTypes
Method ( this d ) : MethodInfo

Private Methods

Method Description
GetConstructors ( this type, BindingFlags bindingFlags, IList parameterTypes ) : IEnumerable
GetFieldsRecursive ( this type ) : IList
GetMembersRecursive ( this type ) : IList
GetPropertiesRecursive ( this type ) : IList
TestAccessibility ( FieldInfo member, BindingFlags bindingFlags ) : bool
TestAccessibility ( MemberInfo member, BindingFlags bindingFlags ) : bool
TestAccessibility ( MethodBase member, BindingFlags bindingFlags ) : bool
TestAccessibility ( PropertyInfo member, BindingFlags bindingFlags ) : bool

Method Details

Assembly() public static method

public static Assembly ( this type ) : Assembly
type this
return System.Reflection.Assembly

AssignableToTypeName() public static method

public static AssignableToTypeName ( this type, string fullTypeName ) : bool
type this
fullTypeName string
return bool

AssignableToTypeName() public static method

public static AssignableToTypeName ( this type, string fullTypeName, Type &match ) : bool
type this
fullTypeName string
match System.Type
return bool

BaseType() public static method

public static BaseType ( this type ) : Type
type this
return System.Type

ContainsGenericParameters() public static method

public static ContainsGenericParameters ( this type ) : bool
type this
return bool

GetBaseDefinition() public static method

public static GetBaseDefinition ( this method ) : MethodInfo
method this
return System.Reflection.MethodInfo

GetConstructor() public static method

public static GetConstructor ( this type, BindingFlags bindingFlags, object placeholder1, IList parameterTypes, object placeholder2 ) : ConstructorInfo
type this
bindingFlags BindingFlags
placeholder1 object
parameterTypes IList
placeholder2 object
return System.Reflection.ConstructorInfo

GetConstructor() public static method

public static GetConstructor ( this type, IList parameterTypes ) : ConstructorInfo
type this
parameterTypes IList
return System.Reflection.ConstructorInfo

GetConstructors() public static method

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

GetConstructors() public static method

public static GetConstructors ( this type, BindingFlags bindingFlags ) : IEnumerable
type this
bindingFlags BindingFlags
return IEnumerable

GetField() public static method

public static GetField ( this type, string member ) : MemberInfo
type this
member string
return System.Reflection.MemberInfo

GetField() public static method

public static GetField ( this type, string member, BindingFlags bindingFlags ) : MemberInfo
type this
member string
bindingFlags BindingFlags
return System.Reflection.MemberInfo

GetFields() public static method

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

GetFields() public static method

public static GetFields ( this type, BindingFlags bindingFlags ) : IEnumerable
type this
bindingFlags BindingFlags
return IEnumerable

GetGenericArguments() public static method

public static GetGenericArguments ( this type ) : System.Type[]
type this
return System.Type[]

GetGetMethod() public static method

public static GetGetMethod ( this propertyInfo ) : MethodInfo
propertyInfo this
return System.Reflection.MethodInfo

GetGetMethod() public static method

public static GetGetMethod ( this propertyInfo, bool nonPublic ) : MethodInfo
propertyInfo this
nonPublic bool
return System.Reflection.MethodInfo

GetInterfaces() public static method

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

GetMember() public static method

public static GetMember ( this type, string name, MemberTypes memberType, BindingFlags bindingFlags ) : IEnumerable
type this
name string
memberType MemberTypes
bindingFlags BindingFlags
return IEnumerable

GetMember() public static method

public static GetMember ( this type, string member ) : System.Reflection.MemberInfo[]
type this
member string
return System.Reflection.MemberInfo[]

GetMember() public static method

public static GetMember ( this type, string member, BindingFlags bindingFlags ) : System.Reflection.MemberInfo[]
type this
member string
bindingFlags BindingFlags
return System.Reflection.MemberInfo[]

GetMethod() public static method

public static GetMethod ( this type, IList parameterTypes ) : MethodInfo
type this
parameterTypes IList
return System.Reflection.MethodInfo

GetMethod() public static method

public static GetMethod ( this type, string name ) : MethodInfo
type this
name string
return System.Reflection.MethodInfo

GetMethod() public static method

public static GetMethod ( this type, string name, BindingFlags bindingFlags ) : MethodInfo
type this
name string
bindingFlags BindingFlags
return System.Reflection.MethodInfo

GetMethod() public static method

public static GetMethod ( this type, string name, BindingFlags bindingFlags, object placeHolder1, IList parameterTypes, object placeHolder2 ) : MethodInfo
type this
name string
bindingFlags BindingFlags
placeHolder1 object
parameterTypes IList
placeHolder2 object
return System.Reflection.MethodInfo

GetMethod() public static method

public static GetMethod ( this type, string name, IList parameterTypes ) : MethodInfo
type this
name string
parameterTypes IList
return System.Reflection.MethodInfo

GetMethods() public static method

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

GetMethods() public static method

public static GetMethods ( this type, BindingFlags bindingFlags ) : IEnumerable
type this
bindingFlags BindingFlags
return IEnumerable

GetProperties() public static method

public static GetProperties ( this type, BindingFlags bindingFlags ) : IEnumerable
type this
bindingFlags BindingFlags
return IEnumerable

GetProperty() public static method

public static GetProperty ( this type, string name ) : PropertyInfo
type this
name string
return System.Reflection.PropertyInfo

GetProperty() public static method

public static GetProperty ( this type, string name, BindingFlags bindingFlags ) : PropertyInfo
type this
name string
bindingFlags BindingFlags
return System.Reflection.PropertyInfo

GetProperty() public static method

public static GetProperty ( this type, string name, BindingFlags bindingFlags, object placeholder1, Type propertyType, IList indexParameters, object placeholder2 ) : PropertyInfo
type this
name string
bindingFlags BindingFlags
placeholder1 object
propertyType System.Type
indexParameters IList
placeholder2 object
return System.Reflection.PropertyInfo

GetSetMethod() public static method

public static GetSetMethod ( this propertyInfo ) : MethodInfo
propertyInfo this
return System.Reflection.MethodInfo

GetSetMethod() public static method

public static GetSetMethod ( this propertyInfo, bool nonPublic ) : MethodInfo
propertyInfo this
nonPublic bool
return System.Reflection.MethodInfo

IsAbstract() public static method

public static IsAbstract ( this type ) : bool
type this
return bool

IsAssignableFrom() public static method

public static IsAssignableFrom ( this type, Type c ) : bool
type this
c System.Type
return bool

IsClass() public static method

public static IsClass ( this type ) : bool
type this
return bool

IsDefined() public static method

public static IsDefined ( this type, Type attributeType, bool inherit ) : bool
type this
attributeType Type
inherit bool
return bool

IsEnum() public static method

public static IsEnum ( this type ) : bool
type this
return bool

IsGenericType() public static method

public static IsGenericType ( this type ) : bool
type this
return bool

IsGenericTypeDefinition() public static method

public static IsGenericTypeDefinition ( this type ) : bool
type this
return bool

IsInstanceOfType() public static method

public static IsInstanceOfType ( this type, object o ) : bool
type this
o object
return bool

IsInterface() public static method

public static IsInterface ( this type ) : bool
type this
return bool

IsSealed() public static method

public static IsSealed ( this type ) : bool
type this
return bool

IsSubclassOf() public static method

public static IsSubclassOf ( this type, Type c ) : bool
type this
c Type
return bool

IsValueType() public static method

public static IsValueType ( this type ) : bool
type this
return bool

IsVisible() public static method

public static IsVisible ( this type ) : bool
type this
return bool

MemberType() public static method

public static MemberType ( this memberInfo ) : MemberTypes
memberInfo this
return MemberTypes

Method() public static method

public static Method ( this d ) : MethodInfo
d this
return MethodInfo