20 return "Enum underlying type and the object must be same type or object must be a String. Type passed in was '{0}'; the enum underlying type was '{1}'." !=
null;
174 if (
this ==
null || !
true)
184 if ((num != 0 && c !=
null) || c !=
null)
227 int num2 =
text.LastIndexOf((
char)num);
228 string text2 =
text.Substring(num);
1001 if (
name ==
null || types ==
null || num == 0)
1143 Type type = o.GetType();
1182 return "The Enum type should contain one and only one instance field.";
1264 return base.GetHashCode();
1270 if (!
true || o !=
null)
1465 return "UnknownType";
1472 while (
this ==
null)
class f__AnonymousType0<< Count > j__TPar
MethodInfo GetMethod(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
EventInfo[] GetEvents(BindingFlags bindingAttr)
FieldInfo[] GetFields(BindingFlags bindingAttr)
PropertyInfo GetProperty(string name, BindingFlags bindingAttr)
static RuntimeTypeHandle GetTypeHandle(object o)
TypeAttributes Attributes
EventInfo GetEvent(string name)
PropertyInfo GetProperty(string name, Type returnType, Type[] types)
static readonly object Missing
static Type GetType(string typeName, Func< AssemblyName, Assembly > assemblyResolver, Func< Assembly, string, bool, Type > typeResolver, bool throwOnError)
Array GetEnumRawConstantValues()
virtual MemberInfo[] GetMember(string name, BindingFlags bindingAttr)
virtual Type[] GetGenericParameterConstraints()
virtual Type[] GenericTypeArguments
virtual string FormatTypeName(bool serialization)
virtual string InternalGetNameIfAvailable(Type rootCauseForFailure)
Type UnderlyingSystemType
static readonly char Delimiter
virtual Type[] GetGenericArguments()
PropertyInfo GetProperty(string name, Type returnType)
void GetEnumData([Out] string[] enumNames, [Out] Array enumValues)
static Type internal_from_handle(IntPtr handle)
ConstructorInfo GetConstructor(BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers)
virtual bool IsMarshalByRefImpl()
override Type ReflectedType
virtual bool IsGenericParameter
virtual bool Equals(Type o)
virtual Type MakeGenericType(params Type[] typeArguments)
MethodInfo GetMethod(string name, Type[] types, ParameterModifier[] modifiers)
ConstructorInfo GetConstructor(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
virtual bool IsSerializable
ConstructorInfo[] GetConstructors(BindingFlags bindingAttr)
virtual bool IsAssignableFrom(Type c)
bool HasElementTypeImpl()
virtual string GetEnumName(object value)
static bool FilterNameImpl(MemberInfo m, object filterCriteria)
static Type GetType(string typeName, bool throwOnError, bool ignoreCase)
virtual bool IsConstructedGenericType
static readonly MemberFilter FilterAttribute
override MemberTypes MemberType
virtual string[] GetEnumNames()
virtual int GenericParameterPosition
PropertyInfo[] GetProperties(BindingFlags bindingAttr)
virtual bool IsInstanceOfType(object o)
virtual bool IsVariableBoundArray
static bool FilterAttributeImpl(MemberInfo m, object filterCriteria)
static Binder s_defaultBinder
ConstructorInfo GetConstructor(Type[] types)
virtual int GetArrayRank()
PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
virtual MethodBase DeclaringMethod
override Type DeclaringType
MethodInfo GetMethod(string name, BindingFlags bindingAttr)
MethodInfo GetMethod(string name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers)
virtual bool IsEnumDefined(object value)
static Type GetType(string typeName, bool throwOnError)
static bool operator==(Type left, Type right)
object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParameters)
override int GetHashCode()
static Type MakeGenericSignatureType(Type genericTypeDefinition, params Type[] typeArguments)
string AssemblyQualifiedName
static Type GetTypeFromHandle(RuntimeTypeHandle handle)
Type GetNestedType(string name, BindingFlags bindingAttr)
virtual bool IsSignatureType
virtual bool IsGenericType
static bool operator!=(Type left, Type right)
virtual Type GetEnumUnderlyingType()
virtual bool IsGenericMethodParameter
static int BinarySearch(Array array, object value)
bool ImplementInterface(Type ifaceType)
virtual bool IsContextfulImpl()
PropertyInfo GetProperty(string name)
FieldInfo GetField(string name)
MethodInfo GetMethod(string name, Type[] types)
static readonly MemberFilter FilterNameIgnoreCase
ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
virtual MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr)
static bool IsIntegerType(Type t)
PropertyInfo GetProperty(string name, Type returnType, Type[] types, ParameterModifier[] modifiers)
virtual Type MakeArrayType(int rank)
bool IsRuntimeImplemented()
virtual bool IsSubclassOf(Type c)
virtual bool IsEquivalentTo(Type other)
virtual Array GetEnumValues()
Type GetRootElementType()
TypeAttributes GetAttributeFlagsImpl()
virtual Type MakeArrayType()
EventInfo GetEvent(string name, BindingFlags bindingAttr)
static readonly Type[] EmptyTypes
MethodInfo[] GetMethods()
PropertyInfo GetProperty(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
virtual TypeCode GetTypeCodeImpl()
override string ToString()
virtual bool IsValueTypeImpl()
virtual bool IsGenericTypeDefinition
virtual bool ContainsGenericParameters
MethodInfo GetMethod(string name)
ConstructorInfo[] GetConstructors()
virtual Type GetGenericTypeDefinition()
static Type GetType(string typeName)
MemberInfo[] GetMember(string name)
const string DefaultTypeNameWhenMissingMetadata
MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
virtual Type MakeByRefType()
static readonly MemberFilter FilterName
const BindingFlags DefaultLookup
override bool Equals(object o)
FieldInfo GetField(string name, BindingFlags bindingAttr)
virtual Type MakePointerType()
static TypeCode GetTypeCode(Type type)
MethodInfo[] GetMethods(BindingFlags bindingAttr)
string InternalNameIfAvailable
static bool FilterNameIgnoreCaseImpl(MemberInfo m, object filterCriteria)
virtual RuntimeTypeHandle TypeHandle
GenericParameterAttributes