Class MemberUtility
Inheritance
MemberUtility
Syntax
public static class MemberUtility
Methods
AllowsNull(ParameterInfo)
Declaration
public static bool AllowsNull(this ParameterInfo parameterInfo)
Parameters
Returns
CanWrite(FieldInfo)
Declaration
public static bool CanWrite(this FieldInfo fieldInfo)
Parameters
Returns
CreateDelegate(MethodInfo, Type)
Declaration
public static Delegate CreateDelegate(this MethodInfo methodInfo, Type delegateType)
Parameters
Returns
DefaultValue(ParameterInfo)
Declaration
public static object DefaultValue(this ParameterInfo parameterInfo)
Parameters
Returns
Disambiguate(IEnumerable<ConstructorInfo>, Type, IEnumerable<Type>)
Declaration
public static ConstructorInfo Disambiguate(this IEnumerable<ConstructorInfo> constructors, Type type, IEnumerable<Type> parameterTypes)
Parameters
Returns
Disambiguate(IEnumerable<FieldInfo>, Type)
Declaration
public static FieldInfo Disambiguate(this IEnumerable<FieldInfo> fields, Type type)
Parameters
Returns
Disambiguate(IEnumerable<MethodInfo>, Type, IEnumerable<Type>)
Declaration
public static MethodInfo Disambiguate(this IEnumerable<MethodInfo> methods, Type type, IEnumerable<Type> parameterTypes)
Parameters
Returns
Disambiguate(IEnumerable<MethodInfo>, Type, IEnumerable<Type>, IEnumerable<Type>)
Declaration
public static MethodInfo Disambiguate(this IEnumerable<MethodInfo> methods, Type type, IEnumerable<Type> parameterTypes, IEnumerable<Type> genericArgumentTypes)
Parameters
Returns
Disambiguate(IEnumerable<PropertyInfo>, Type)
Declaration
public static PropertyInfo Disambiguate(this IEnumerable<PropertyInfo> properties, Type type)
Parameters
Returns
ExtendedDeclaringType(MemberInfo, Boolean)
Declaration
public static Type ExtendedDeclaringType(this MemberInfo memberInfo, bool invokeAsExtension)
Parameters
Returns
GetAccessorType(MemberInfo)
Declaration
public static Type GetAccessorType(this MemberInfo memberInfo)
Parameters
Returns
GetConstructorAccepting(Type, Type[])
Declaration
public static ConstructorInfo GetConstructorAccepting(this Type type, params Type[] paramTypes)
Parameters
Type |
Name |
Description |
Type |
type |
|
Type[] |
paramTypes |
|
Returns
GetConstructorAccepting(Type, Type[], Boolean)
Declaration
public static ConstructorInfo GetConstructorAccepting(this Type type, Type[] paramTypes, bool nonPublic)
Parameters
Returns
GetDefaultConstructor(Type)
Declaration
public static ConstructorInfo GetDefaultConstructor(this Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
GetExtendedMember(Type, String, MemberTypes, BindingFlags)
Declaration
public static MemberInfo[] GetExtendedMember(this Type type, string name, MemberTypes types, BindingFlags flags)
Parameters
Returns
GetExtendedMembers(Type, BindingFlags)
Declaration
public static MemberInfo[] GetExtendedMembers(this Type type, BindingFlags flags)
Parameters
Returns
GetExtensionMethods(Type, Boolean)
Declaration
public static IEnumerable<MethodInfo> GetExtensionMethods(this Type thisArgumentType, bool inherited = true)
Parameters
Type |
Name |
Description |
Type |
thisArgumentType |
|
Boolean |
inherited |
|
Returns
GetFieldUnambiguous(Type, String, BindingFlags)
Declaration
public static FieldInfo GetFieldUnambiguous(this Type type, string name, BindingFlags flags)
Parameters
Returns
GetInvocationParameters(MethodBase, Boolean)
Declaration
public static IEnumerable<ParameterInfo> GetInvocationParameters(this MethodBase methodBase, bool invokeAsExtension)
Parameters
Returns
GetInvocationParameters(MethodBase, Type)
Declaration
public static IEnumerable<ParameterInfo> GetInvocationParameters(this MethodBase methodBase, Type targetType)
Parameters
Returns
GetMethodUnambiguous(Type, String, BindingFlags)
Declaration
public static MethodInfo GetMethodUnambiguous(this Type type, string name, BindingFlags flags)
Parameters
Returns
GetPropertyUnambiguous(Type, String, BindingFlags)
Declaration
public static PropertyInfo GetPropertyUnambiguous(this Type type, string name, BindingFlags flags)
Parameters
Returns
GetPublicConstructorAccepting(Type, Type[])
Declaration
public static ConstructorInfo GetPublicConstructorAccepting(this Type type, params Type[] paramTypes)
Parameters
Type |
Name |
Description |
Type |
type |
|
Type[] |
paramTypes |
|
Returns
GetPublicDefaultConstructor(Type)
Declaration
public static ConstructorInfo GetPublicDefaultConstructor(this Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
HasDefaultValue(ParameterInfo)
Declaration
public static bool HasDefaultValue(this ParameterInfo parameterInfo)
Parameters
Returns
HasOutModifier(ParameterInfo)
Declaration
public static bool HasOutModifier(this ParameterInfo parameterInfo)
Parameters
Returns
IsAccessor(MemberInfo)
Declaration
public static bool IsAccessor(this MemberInfo memberInfo)
Parameters
Returns
IsExtension(MethodInfo)
Declaration
public static bool IsExtension(this MethodInfo methodInfo)
Parameters
Returns
IsExtensionMethod(MemberInfo)
Declaration
public static bool IsExtensionMethod(this MemberInfo memberInfo)
Parameters
Returns
IsGenericExtension(MethodInfo)
Declaration
public static bool IsGenericExtension(this MethodInfo methodInfo)
Parameters
Returns
IsInvokedAsExtension(MethodBase, Type)
Declaration
public static bool IsInvokedAsExtension(this MethodBase methodBase, Type targetType)
Parameters
Returns
IsOperator(MethodInfo)
Declaration
public static bool IsOperator(this MethodInfo method)
Parameters
Returns
IsPubliclyGettable(MemberInfo)
Declaration
public static bool IsPubliclyGettable(this MemberInfo memberInfo)
Parameters
Returns
IsStatic(MemberInfo)
Declaration
public static bool IsStatic(this MemberInfo memberInfo)
Parameters
Returns
IsStatic(PropertyInfo)
Declaration
public static bool IsStatic(this PropertyInfo propertyInfo)
Parameters
Returns
IsUserDefinedConversion(MethodInfo)
Declaration
public static bool IsUserDefinedConversion(this MethodInfo method)
Parameters
Returns
MakeGenericMethodVia(MethodInfo, Type[])
Declaration
public static MethodInfo MakeGenericMethodVia(this MethodInfo openConstructedMethod, params Type[] closedConstructedParameterTypes)
Parameters
Type |
Name |
Description |
MethodInfo |
openConstructedMethod |
|
Type[] |
closedConstructedParameterTypes |
|
Returns
PseudoDefaultValue(ParameterInfo)
Declaration
public static object PseudoDefaultValue(this ParameterInfo parameterInfo)
Parameters
Returns
SignatureMatches(ConstructorInfo, String, IEnumerable<Type>)
Declaration
public static bool SignatureMatches(this ConstructorInfo constructor, string name, IEnumerable<Type> parameterTypes)
Parameters
Returns
SignatureMatches(FieldInfo, String)
Declaration
public static bool SignatureMatches(this FieldInfo field, string name)
Parameters
Returns
SignatureMatches(MethodInfo, String, IEnumerable<Type>, Boolean)
Declaration
public static bool SignatureMatches(this MethodInfo method, string name, IEnumerable<Type> parameterTypes, bool invokeAsExtension)
Parameters
Returns
SignatureMatches(MethodInfo, String, IEnumerable<Type>, IEnumerable<Type>, Boolean)
Declaration
public static bool SignatureMatches(this MethodInfo method, string name, IEnumerable<Type> parameterTypes, IEnumerable<Type> genericArgumentTypes, bool invokeAsExtension)
Parameters
Returns
SignatureMatches(PropertyInfo, String)
Declaration
public static bool SignatureMatches(this PropertyInfo property, string name)
Parameters
Returns
ToManipulator(ConstructorInfo, Type)
Declaration
public static Member ToManipulator(this ConstructorInfo constructorInfo, Type targetType)
Parameters
Returns
ToManipulator(FieldInfo, Type)
Declaration
public static Member ToManipulator(this FieldInfo fieldInfo, Type targetType)
Parameters
Returns
ToManipulator(MemberInfo)
Declaration
public static Member ToManipulator(this MemberInfo memberInfo)
Parameters
Returns
ToManipulator(MemberInfo, Type)
Declaration
public static Member ToManipulator(this MemberInfo memberInfo, Type targetType)
Parameters
Returns
ToManipulator(MethodInfo, Type)
Declaration
public static Member ToManipulator(this MethodInfo methodInfo, Type targetType)
Parameters
Returns
ToManipulator(PropertyInfo, Type)
Declaration
public static Member ToManipulator(this PropertyInfo propertyInfo, Type targetType)
Parameters
Returns
UnderlyingParameterType(ParameterInfo)
Declaration
public static Type UnderlyingParameterType(this ParameterInfo parameterInfo)
Parameters
Returns