C# Класс indice.Edi.Utilities.TypeExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Assembly() публичный статический Метод

public static Assembly ( this type ) : Assembly
type this
Результат System.Reflection.Assembly

AssignableToTypeName() публичный статический Метод

public static AssignableToTypeName ( this type, string fullTypeName ) : bool
type this
fullTypeName string
Результат bool

AssignableToTypeName() публичный статический Метод

public static AssignableToTypeName ( this type, string fullTypeName, Type &match ) : bool
type this
fullTypeName string
match System.Type
Результат bool

BaseType() публичный статический Метод

public static BaseType ( this type ) : Type
type this
Результат System.Type

ContainsGenericParameters() публичный статический Метод

public static ContainsGenericParameters ( this type ) : bool
type this
Результат bool

GetBaseDefinition() публичный статический Метод

public static GetBaseDefinition ( this method ) : MethodInfo
method this
Результат System.Reflection.MethodInfo

GetConstructor() публичный статический Метод

public static GetConstructor ( this type, BindingFlags bindingFlags, object placeholder1, IList parameterTypes, object placeholder2 ) : ConstructorInfo
type this
bindingFlags BindingFlags
placeholder1 object
parameterTypes IList
placeholder2 object
Результат System.Reflection.ConstructorInfo

GetConstructor() публичный статический Метод

public static GetConstructor ( this type, IList parameterTypes ) : ConstructorInfo
type this
parameterTypes IList
Результат System.Reflection.ConstructorInfo

GetConstructors() публичный статический Метод

public static GetConstructors ( this type ) : IEnumerable
type this
Результат IEnumerable

GetConstructors() публичный статический Метод

public static GetConstructors ( this type, BindingFlags bindingFlags ) : IEnumerable
type this
bindingFlags BindingFlags
Результат IEnumerable

GetField() публичный статический Метод

public static GetField ( this type, string member ) : MemberInfo
type this
member string
Результат System.Reflection.MemberInfo

GetField() публичный статический Метод

public static GetField ( this type, string member, BindingFlags bindingFlags ) : MemberInfo
type this
member string
bindingFlags BindingFlags
Результат System.Reflection.MemberInfo

GetFields() публичный статический Метод

public static GetFields ( this type ) : IEnumerable
type this
Результат IEnumerable

GetFields() публичный статический Метод

public static GetFields ( this type, BindingFlags bindingFlags ) : IEnumerable
type this
bindingFlags BindingFlags
Результат IEnumerable

GetGenericArguments() публичный статический Метод

public static GetGenericArguments ( this type ) : System.Type[]
type this
Результат System.Type[]

GetGetMethod() публичный статический Метод

public static GetGetMethod ( this propertyInfo ) : MethodInfo
propertyInfo this
Результат System.Reflection.MethodInfo

GetGetMethod() публичный статический Метод

public static GetGetMethod ( this propertyInfo, bool nonPublic ) : MethodInfo
propertyInfo this
nonPublic bool
Результат System.Reflection.MethodInfo

GetInterfaces() публичный статический Метод

public static GetInterfaces ( this type ) : IEnumerable
type this
Результат IEnumerable

GetMember() публичный статический Метод

public static GetMember ( this type, string name, MemberTypes memberType, BindingFlags bindingFlags ) : IEnumerable
type this
name string
memberType MemberTypes
bindingFlags BindingFlags
Результат IEnumerable

GetMember() публичный статический Метод

public static GetMember ( this type, string member ) : System.Reflection.MemberInfo[]
type this
member string
Результат System.Reflection.MemberInfo[]

GetMember() публичный статический Метод

public static GetMember ( this type, string member, BindingFlags bindingFlags ) : System.Reflection.MemberInfo[]
type this
member string
bindingFlags BindingFlags
Результат System.Reflection.MemberInfo[]

GetMethod() публичный статический Метод

public static GetMethod ( this type, IList parameterTypes ) : MethodInfo
type this
parameterTypes IList
Результат System.Reflection.MethodInfo

GetMethod() публичный статический Метод

public static GetMethod ( this type, string name ) : MethodInfo
type this
name string
Результат System.Reflection.MethodInfo

GetMethod() публичный статический Метод

public static GetMethod ( this type, string name, BindingFlags bindingFlags ) : MethodInfo
type this
name string
bindingFlags BindingFlags
Результат System.Reflection.MethodInfo

GetMethod() публичный статический Метод

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
Результат System.Reflection.MethodInfo

GetMethod() публичный статический Метод

public static GetMethod ( this type, string name, IList parameterTypes ) : MethodInfo
type this
name string
parameterTypes IList
Результат System.Reflection.MethodInfo

GetMethods() публичный статический Метод

public static GetMethods ( this type ) : IEnumerable
type this
Результат IEnumerable

GetMethods() публичный статический Метод

public static GetMethods ( this type, BindingFlags bindingFlags ) : IEnumerable
type this
bindingFlags BindingFlags
Результат IEnumerable

GetProperties() публичный статический Метод

public static GetProperties ( this type, BindingFlags bindingFlags ) : IEnumerable
type this
bindingFlags BindingFlags
Результат IEnumerable

GetProperty() публичный статический Метод

public static GetProperty ( this type, string name ) : PropertyInfo
type this
name string
Результат System.Reflection.PropertyInfo

GetProperty() публичный статический Метод

public static GetProperty ( this type, string name, BindingFlags bindingFlags ) : PropertyInfo
type this
name string
bindingFlags BindingFlags
Результат System.Reflection.PropertyInfo

GetProperty() публичный статический Метод

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
Результат System.Reflection.PropertyInfo

GetSetMethod() публичный статический Метод

public static GetSetMethod ( this propertyInfo ) : MethodInfo
propertyInfo this
Результат System.Reflection.MethodInfo

GetSetMethod() публичный статический Метод

public static GetSetMethod ( this propertyInfo, bool nonPublic ) : MethodInfo
propertyInfo this
nonPublic bool
Результат System.Reflection.MethodInfo

IsAbstract() публичный статический Метод

public static IsAbstract ( this type ) : bool
type this
Результат bool

IsAssignableFrom() публичный статический Метод

public static IsAssignableFrom ( this type, Type c ) : bool
type this
c System.Type
Результат bool

IsClass() публичный статический Метод

public static IsClass ( this type ) : bool
type this
Результат bool

IsDefined() публичный статический Метод

public static IsDefined ( this type, Type attributeType, bool inherit ) : bool
type this
attributeType Type
inherit bool
Результат bool

IsEnum() публичный статический Метод

public static IsEnum ( this type ) : bool
type this
Результат bool

IsGenericType() публичный статический Метод

public static IsGenericType ( this type ) : bool
type this
Результат bool

IsGenericTypeDefinition() публичный статический Метод

public static IsGenericTypeDefinition ( this type ) : bool
type this
Результат bool

IsInstanceOfType() публичный статический Метод

public static IsInstanceOfType ( this type, object o ) : bool
type this
o object
Результат bool

IsInterface() публичный статический Метод

public static IsInterface ( this type ) : bool
type this
Результат bool

IsSealed() публичный статический Метод

public static IsSealed ( this type ) : bool
type this
Результат bool

IsSubclassOf() публичный статический Метод

public static IsSubclassOf ( this type, Type c ) : bool
type this
c Type
Результат bool

IsValueType() публичный статический Метод

public static IsValueType ( this type ) : bool
type this
Результат bool

IsVisible() публичный статический Метод

public static IsVisible ( this type ) : bool
type this
Результат bool

MemberType() публичный статический Метод

public static MemberType ( this memberInfo ) : MemberTypes
memberInfo this
Результат MemberTypes

Method() публичный статический Метод

public static Method ( this d ) : MethodInfo
d this
Результат MethodInfo