C# Class indice.Edi.Utilities.TypeExtensions

Afficher le fichier Open project: indice-co/EDI.Net

Méthodes publiques

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

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

public static Assembly ( this type ) : Assembly
type this
Résultat System.Reflection.Assembly

AssignableToTypeName() public static méthode

public static AssignableToTypeName ( this type, string fullTypeName ) : bool
type this
fullTypeName string
Résultat bool

AssignableToTypeName() public static méthode

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

BaseType() public static méthode

public static BaseType ( this type ) : Type
type this
Résultat System.Type

ContainsGenericParameters() public static méthode

public static ContainsGenericParameters ( this type ) : bool
type this
Résultat bool

GetBaseDefinition() public static méthode

public static GetBaseDefinition ( this method ) : MethodInfo
method this
Résultat System.Reflection.MethodInfo

GetConstructor() public static méthode

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

GetConstructor() public static méthode

public static GetConstructor ( this type, IList parameterTypes ) : ConstructorInfo
type this
parameterTypes IList
Résultat System.Reflection.ConstructorInfo

GetConstructors() public static méthode

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

GetConstructors() public static méthode

public static GetConstructors ( this type, BindingFlags bindingFlags ) : IEnumerable
type this
bindingFlags BindingFlags
Résultat IEnumerable

GetField() public static méthode

public static GetField ( this type, string member ) : MemberInfo
type this
member string
Résultat System.Reflection.MemberInfo

GetField() public static méthode

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

GetFields() public static méthode

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

GetFields() public static méthode

public static GetFields ( this type, BindingFlags bindingFlags ) : IEnumerable
type this
bindingFlags BindingFlags
Résultat IEnumerable

GetGenericArguments() public static méthode

public static GetGenericArguments ( this type ) : System.Type[]
type this
Résultat System.Type[]

GetGetMethod() public static méthode

public static GetGetMethod ( this propertyInfo ) : MethodInfo
propertyInfo this
Résultat System.Reflection.MethodInfo

GetGetMethod() public static méthode

public static GetGetMethod ( this propertyInfo, bool nonPublic ) : MethodInfo
propertyInfo this
nonPublic bool
Résultat System.Reflection.MethodInfo

GetInterfaces() public static méthode

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

GetMember() public static méthode

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

GetMember() public static méthode

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

GetMember() public static méthode

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

GetMethod() public static méthode

public static GetMethod ( this type, IList parameterTypes ) : MethodInfo
type this
parameterTypes IList
Résultat System.Reflection.MethodInfo

GetMethod() public static méthode

public static GetMethod ( this type, string name ) : MethodInfo
type this
name string
Résultat System.Reflection.MethodInfo

GetMethod() public static méthode

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

GetMethod() public static méthode

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
Résultat System.Reflection.MethodInfo

GetMethod() public static méthode

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

GetMethods() public static méthode

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

GetMethods() public static méthode

public static GetMethods ( this type, BindingFlags bindingFlags ) : IEnumerable
type this
bindingFlags BindingFlags
Résultat IEnumerable

GetProperties() public static méthode

public static GetProperties ( this type, BindingFlags bindingFlags ) : IEnumerable
type this
bindingFlags BindingFlags
Résultat IEnumerable

GetProperty() public static méthode

public static GetProperty ( this type, string name ) : PropertyInfo
type this
name string
Résultat System.Reflection.PropertyInfo

GetProperty() public static méthode

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

GetProperty() public static méthode

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
Résultat System.Reflection.PropertyInfo

GetSetMethod() public static méthode

public static GetSetMethod ( this propertyInfo ) : MethodInfo
propertyInfo this
Résultat System.Reflection.MethodInfo

GetSetMethod() public static méthode

public static GetSetMethod ( this propertyInfo, bool nonPublic ) : MethodInfo
propertyInfo this
nonPublic bool
Résultat System.Reflection.MethodInfo

IsAbstract() public static méthode

public static IsAbstract ( this type ) : bool
type this
Résultat bool

IsAssignableFrom() public static méthode

public static IsAssignableFrom ( this type, Type c ) : bool
type this
c System.Type
Résultat bool

IsClass() public static méthode

public static IsClass ( this type ) : bool
type this
Résultat bool

IsDefined() public static méthode

public static IsDefined ( this type, Type attributeType, bool inherit ) : bool
type this
attributeType Type
inherit bool
Résultat bool

IsEnum() public static méthode

public static IsEnum ( this type ) : bool
type this
Résultat bool

IsGenericType() public static méthode

public static IsGenericType ( this type ) : bool
type this
Résultat bool

IsGenericTypeDefinition() public static méthode

public static IsGenericTypeDefinition ( this type ) : bool
type this
Résultat bool

IsInstanceOfType() public static méthode

public static IsInstanceOfType ( this type, object o ) : bool
type this
o object
Résultat bool

IsInterface() public static méthode

public static IsInterface ( this type ) : bool
type this
Résultat bool

IsSealed() public static méthode

public static IsSealed ( this type ) : bool
type this
Résultat bool

IsSubclassOf() public static méthode

public static IsSubclassOf ( this type, Type c ) : bool
type this
c Type
Résultat bool

IsValueType() public static méthode

public static IsValueType ( this type ) : bool
type this
Résultat bool

IsVisible() public static méthode

public static IsVisible ( this type ) : bool
type this
Résultat bool

MemberType() public static méthode

public static MemberType ( this memberInfo ) : MemberTypes
memberInfo this
Résultat MemberTypes

Method() public static méthode

public static Method ( this d ) : MethodInfo
d this
Résultat MethodInfo