Class MemberUtility
Inheritance
MemberUtility
Namespace: Ludiq
Syntax
public static class MemberUtility
Fields
supportGenericExtensionMethods
Declaration
public const bool supportGenericExtensionMethods = false
Field Value
Methods
AllowsNull(ParameterInfo)
Declaration
public static bool AllowsNull(this ParameterInfo parameterInfo)
Parameters
Returns
CanDefineExtensionMethods(Type)
Declaration
public static bool CanDefineExtensionMethods(this Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
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<String>)
Declaration
public static ConstructorInfo Disambiguate(this IEnumerable<ConstructorInfo> constructors, Type type, IEnumerable<string> parameterOpenTypeNames)
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<EventInfo>, Type)
Declaration
public static EventInfo Disambiguate(this IEnumerable<EventInfo> events, Type type)
Parameters
Returns
Disambiguate(IEnumerable<FieldInfo>, Type)
Declaration
public static FieldInfo Disambiguate(this IEnumerable<FieldInfo> fields, Type type)
Parameters
Returns
Disambiguate(IEnumerable<MethodInfo>, Type, IEnumerable<String>, Int32)
Declaration
public static MethodInfo Disambiguate(this IEnumerable<MethodInfo> methods, Type type, IEnumerable<string> parameterOpenTypeNames, int methodArity)
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<PropertyInfo>, Type)
Declaration
public static PropertyInfo Disambiguate(this IEnumerable<PropertyInfo> properties, Type type)
Parameters
Returns
Disambiguate(IEnumerable<PropertyInfo>, Type, IEnumerable<String>)
Declaration
public static PropertyInfo Disambiguate(this IEnumerable<PropertyInfo> properties, Type type, IEnumerable<string> parameterTypes)
Parameters
Returns
Disambiguate(IEnumerable<PropertyInfo>, Type, IEnumerable<Type>)
Declaration
public static PropertyInfo Disambiguate(this IEnumerable<PropertyInfo> properties, Type type, IEnumerable<Type> parameterTypes)
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)
Declaration
public static IEnumerable<MethodInfo> GetExtensionMethods(this Type thisArgumentType)
Parameters
Type |
Name |
Description |
Type |
thisArgumentType |
|
Returns
GetGenericArity(MethodInfo)
Declaration
public static int GetGenericArity(this MethodInfo m)
Parameters
Returns
GetIndicativeMethod(EventInfo)
Declaration
public static MethodInfo GetIndicativeMethod(this EventInfo eventInfo)
Parameters
Returns
GetIndicativeMethod(PropertyInfo)
Declaration
public static MethodInfo GetIndicativeMethod(this PropertyInfo propertyInfo)
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
GetInvokeMethod(Type)
Declaration
public static MethodInfo GetInvokeMethod(this Type delegateType)
Parameters
Type |
Name |
Description |
Type |
delegateType |
|
Returns
GetOperatorCategory(MemberInfo)
Declaration
public static OperatorCategory GetOperatorCategory(this MemberInfo memberInfo)
Parameters
Returns
GetOperatorCategory(MethodInfo)
Declaration
public static OperatorCategory GetOperatorCategory(this MethodInfo method)
Parameters
Returns
GetOperators(Type)
Declaration
public static IEnumerable<MethodInfo> GetOperators(this Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
GetPropertyUnambiguous(Type, String, BindingFlags)
Declaration
public static PropertyInfo GetPropertyUnambiguous(this Type type, string name, BindingFlags flags)
Parameters
Returns
GetPropertyUnambiguous(Type, String, BindingFlags, Type[])
Declaration
public static PropertyInfo GetPropertyUnambiguous(this Type type, string name, BindingFlags flags, Type[] parameterTypes)
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
GetThisParameter(MethodBase, Boolean)
Declaration
public static ParameterInfo GetThisParameter(this MethodBase methodBase, bool safe = true)
Parameters
Returns
HasDefaultValue(ParameterInfo)
Declaration
public static bool HasDefaultValue(this ParameterInfo parameterInfo)
Parameters
Returns
IsAccessor(MemberInfo)
Declaration
public static bool IsAccessor(this MemberInfo memberInfo)
Parameters
Returns
IsDelegateInvokeMethod(MethodInfo)
Declaration
public static bool IsDelegateInvokeMethod(this MethodInfo methodInfo)
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
IsIndexer(PropertyInfo)
Declaration
public static bool IsIndexer(this PropertyInfo propertyInfo)
Parameters
Returns
IsInvokedAsExtension(MethodBase, Type)
Declaration
public static bool IsInvokedAsExtension(this MethodBase methodBase, Type targetType)
Parameters
Returns
IsOperator(MemberInfo)
Declaration
public static bool IsOperator(this MemberInfo memberInfo)
Parameters
Returns
IsOperator(MethodInfo)
Declaration
public static bool IsOperator(this MethodInfo method)
Parameters
Returns
IsPublic(EventInfo)
Declaration
public static bool IsPublic(this EventInfo eventInfo)
Parameters
Returns
IsPubliclyGettable(MemberInfo)
Declaration
public static bool IsPubliclyGettable(this MemberInfo memberInfo)
Parameters
Returns
IsStatic(EventInfo)
Declaration
public static bool IsStatic(this EventInfo eventInfo)
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
IsVirtual(EventInfo)
Declaration
public static bool IsVirtual(this EventInfo eventInfo)
Parameters
Returns
IsVirtual(MemberInfo)
Declaration
public static bool IsVirtual(this MemberInfo memberInfo)
Parameters
Returns
IsVirtual(PropertyInfo)
Declaration
public static bool IsVirtual(this PropertyInfo propertyInfo)
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
ToMember(ConstructorInfo, Type)
Declaration
public static Member ToMember(this ConstructorInfo constructorInfo, Type targetType)
Parameters
Returns
ToMember(EventInfo, Type)
Declaration
public static Member ToMember(this EventInfo eventInfo, Type targetType)
Parameters
Returns
ToMember(FieldInfo, Type)
Declaration
public static Member ToMember(this FieldInfo fieldInfo, Type targetType)
Parameters
Returns
ToMember(MemberInfo)
Declaration
public static Member ToMember(this MemberInfo memberInfo)
Parameters
Returns
ToMember(MemberInfo, Type)
Declaration
public static Member ToMember(this MemberInfo memberInfo, Type targetType)
Parameters
Returns
ToMember(MethodInfo, Type)
Declaration
public static Member ToMember(this MethodInfo methodInfo, Type targetType)
Parameters
Returns
ToMember(PropertyInfo, Type)
Declaration
public static Member ToMember(this PropertyInfo propertyInfo, Type targetType)
Parameters
Returns
UnderlyingParameterType(ParameterInfo)
Declaration
public static Type UnderlyingParameterType(this ParameterInfo parameterInfo)
Parameters
Returns