1 type derived from RuntimeType
mscorlib (1)
system\rttype.cs (1)
5826internal class ReflectionOnlyType : RuntimeType {
1115 references to RuntimeType
mscorlib (1115)
system\__comobject.cs (2)
160internal Object GetEventProvider(RuntimeType t) 188private Object CreateEventProvider(RuntimeType t)
system\activator.cs (6)
101RuntimeType rt = type.UnderlyingSystemType as RuntimeType; 187RuntimeType rt = type.UnderlyingSystemType as RuntimeType; 199RuntimeType rt = typeof(T) as RuntimeType;
system\argiterator.cs (1)
107private unsafe extern void InternalGetNextArg(void * result, RuntimeType rt);
system\array.cs (10)
83RuntimeType t = elementType.UnderlyingSystemType as RuntimeType; 101RuntimeType t = elementType.UnderlyingSystemType as RuntimeType; 127RuntimeType t = elementType.UnderlyingSystemType as RuntimeType; 150RuntimeType t = elementType.UnderlyingSystemType as RuntimeType; 208RuntimeType t = elementType.UnderlyingSystemType as RuntimeType;
system\attribute.cs (4)
838RuntimeType thisType = (RuntimeType)this.GetType(); 839RuntimeType thatType = (RuntimeType)obj.GetType();
system\collections\generic\comparer.cs (6)
47RuntimeType t = (RuntimeType)typeof(T); 60return (Comparer<T>)RuntimeTypeHandle.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(GenericComparer<int>), t); 65RuntimeType u = (RuntimeType)t.GetGenericArguments()[0]; 67return (Comparer<T>)RuntimeTypeHandle.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(NullableComparer<int>), u);
system\collections\generic\equalitycomparer.cs (10)
43RuntimeType t = (RuntimeType)typeof(T); 50return (EqualityComparer<T>)RuntimeTypeHandle.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(GenericEqualityComparer<int>), t); 54RuntimeType u = (RuntimeType)t.GetGenericArguments()[0]; 56return (EqualityComparer<T>)RuntimeTypeHandle.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(NullableEqualityComparer<int>), u); 69return (EqualityComparer<T>)RuntimeTypeHandle.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(ShortEnumEqualityComparer<short>), t); 71return (EqualityComparer<T>)RuntimeTypeHandle.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(SByteEnumEqualityComparer<sbyte>), t); 76return (EqualityComparer<T>)RuntimeTypeHandle.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(EnumEqualityComparer<int>), t); 79return (EqualityComparer<T>)RuntimeTypeHandle.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(LongEnumEqualityComparer<long>), t);
system\convert.cs (26)
115internal static readonly RuntimeType[] ConvertTypes = { 116(RuntimeType)typeof(System.Empty), 117(RuntimeType)typeof(Object), 118(RuntimeType)typeof(System.DBNull), 119(RuntimeType)typeof(Boolean), 120(RuntimeType)typeof(Char), 121(RuntimeType)typeof(SByte), 122(RuntimeType)typeof(Byte), 123(RuntimeType)typeof(Int16), 124(RuntimeType)typeof(UInt16), 125(RuntimeType)typeof(Int32), 126(RuntimeType)typeof(UInt32), 127(RuntimeType)typeof(Int64), 128(RuntimeType)typeof(UInt64), 129(RuntimeType)typeof(Single), 130(RuntimeType)typeof(Double), 131(RuntimeType)typeof(Decimal), 132(RuntimeType)typeof(DateTime), 133(RuntimeType)typeof(Object), //TypeCode is discontinuous so we need a placeholder. 134(RuntimeType)typeof(String) 138private static readonly RuntimeType EnumType = (RuntimeType)typeof(Enum); 268RuntimeType rtTargetType = targetType as RuntimeType; 346RuntimeType rtConversionType = conversionType as RuntimeType;
system\defaultbinder.cs (20)
228if (argTypes[paramOrder[i][j]] == null || !CanConvertPrimitiveObjectToType(args[paramOrder[i][j]],(RuntimeType)pCls)) 258if (argTypes[j] == null || !CanConvertPrimitiveObjectToType(args[j], (RuntimeType)paramArrayType)) 478if (CanConvertPrimitiveObjectToType(value,(RuntimeType)pCls)) { 527if (!(realTypes[i] is RuntimeType)) 552if (!(types[j].UnderlyingSystemType is RuntimeType) || 553!CanConvertPrimitive((RuntimeType)types[j].UnderlyingSystemType,(RuntimeType)pCls.UnderlyingSystemType)) 638if (!(indexes[j].UnderlyingSystemType is RuntimeType) || 639!CanConvertPrimitive((RuntimeType)indexes[j].UnderlyingSystemType,(RuntimeType)pCls.UnderlyingSystemType)) 652if (!(returnType.UnderlyingSystemType is RuntimeType) || 653!CanConvertPrimitive((RuntimeType)returnType.UnderlyingSystemType,(RuntimeType)candidates[i].PropertyType.UnderlyingSystemType)) 929c1FromC2 = CanConvertPrimitive((RuntimeType)c2, (RuntimeType)c1); 930c2FromC1 = CanConvertPrimitive((RuntimeType)c1, (RuntimeType)c2); 1098private static extern bool CanConvertPrimitive(RuntimeType source,RuntimeType target); 1106static internal extern bool CanConvertPrimitiveObjectToType(Object source,RuntimeType type);
system\delegate.cs (28)
62if (!BindToMethodName(target, (RuntimeType)target.GetType(), method, 84RuntimeType rtTarget = target as RuntimeType; 121RuntimeMethodInfo invoke = (RuntimeMethodInfo)RuntimeType.GetMethodBase((RuntimeType)this.GetType(), method); 237RuntimeType declaringType = RuntimeMethodHandle.GetDeclaringType(method); 263declaringType = currentType as RuntimeType; 278declaringType = (RuntimeType)invoke.GetParameters()[0].ParameterType; 282_methodBase = (MethodInfo)RuntimeType.GetMethodBase(declaringType, method); 382RuntimeType rtType = type as RuntimeType; 405if (!d.BindToMethodName(target, (RuntimeType)target.GetType(), method, 445RuntimeType rtType = type as RuntimeType; 446RuntimeType rtTarget = target as RuntimeType; 493RuntimeType rtType = type as RuntimeType; 544RuntimeType rtType = type as RuntimeType; 616RuntimeType rtType = type as RuntimeType; 641internal static Delegate CreateDelegateNoSecurityCheck(RuntimeType type, Object firstArgument, MethodInfo method) 683internal static Delegate CreateDelegateInternal(RuntimeType rtType, RuntimeMethodInfo rtMethod, Object firstArgument, DelegateBindingFlags flags, ref StackCrawlMark stackMark) 704internal static Delegate UnsafeCreateDelegate(RuntimeType rtType, RuntimeMethodInfo rtMethod, Object firstArgument, DelegateBindingFlags flags) 728private extern bool BindToMethodName(Object target, RuntimeType methodType, String method, DelegateBindingFlags flags); 733private extern bool BindToMethodInfo(Object target, IRuntimeMethodInfo method, RuntimeType methodType, DelegateBindingFlags flags); 738private extern static MulticastDelegate InternalAlloc(RuntimeType type);
system\delegateserializationholder.cs (4)
216RuntimeType type = (RuntimeType)Assembly.GetType_Compat(de.assembly, de.type); 217RuntimeType targetType = (RuntimeType)Assembly.GetType_Compat(de.targetTypeAssembly, de.targetTypeName);
system\diagnostics\stacktrace.cs (2)
234return RuntimeType.GetMethodBase(mhReal); 269rgMethodBase[i] = RuntimeType.GetMethodBase(new RuntimeMethodInfoStub(rgMethodHandle[i], this));
system\enum.cs (34)
28private static ValuesAndNames GetCachedValuesAndNames(RuntimeType enumType, bool getNames) 134private static String InternalFormat(RuntimeType eT, Object value) 154private static String InternalFlagsFormat(RuntimeType eT, Object value) 250internal static extern RuntimeType InternalGetUnderlyingType(RuntimeType enumType); 261private static extern Object InternalBoxEnum(RuntimeType enumType, long value); 373RuntimeType rtType = enumType as RuntimeType; 505internal static ulong[] InternalGetValues(RuntimeType enumType) 532internal static String[] InternalGetNames(RuntimeType enumType) 621RuntimeType rtType = enumType as RuntimeType; 802return Enum.InternalFormat((RuntimeType)GetType(), GetValue()); 865return InternalFlagsFormat((RuntimeType)GetType(), GetValue()); 1053RuntimeType rtType = enumType as RuntimeType; 1068RuntimeType rtType = enumType as RuntimeType; 1083RuntimeType rtType = enumType as RuntimeType; 1098RuntimeType rtType = enumType as RuntimeType; 1114RuntimeType rtType = enumType as RuntimeType; 1130RuntimeType rtType = enumType as RuntimeType; 1145RuntimeType rtType = enumType as RuntimeType; 1161RuntimeType rtType = enumType as RuntimeType; 1175RuntimeType rtType = enumType as RuntimeType; 1189RuntimeType rtType = enumType as RuntimeType;
system\exception.cs (1)
283return RuntimeType.GetMethodBase(method);
system\marshalbyrefobject.cs (1)
238internal static bool CanCastToXmlTypeHelper(RuntimeType castType, MarshalByRefObject o)
system\multicastdelegate.cs (4)
586RuntimeType declaringType = RuntimeMethodHandle.GetDeclaringType(method); 592RuntimeType reflectedType = GetType() as RuntimeType; 595_methodBase = (MethodInfo)RuntimeType.GetMethodBase(declaringType, method);
system\reflection\assembly.cs (9)
1474return (MethodInfo)RuntimeType.GetMethodBase(methodHandle); 1495RuntimeType type = null; 1525List<RuntimeType> rtTypes = new List<RuntimeType>(); 1648return CustomAttribute.GetCustomAttributes(this, typeof(object) as RuntimeType); 1657RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 1671RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType;
system\reflection\Associates.cs (8)
43RuntimeType declaredType, 44RuntimeType reflectedType) 56RuntimeType [] genericArguments = declaredType.GetTypeHandleInternal().GetInstantiationInternal(); 110RuntimeType.GetMethodBase(reflectedType, associateMethodHandle) as RuntimeMethodInfo; 123RuntimeType declaringType, 124RuntimeType reflectedType, 143reflectedType = (RuntimeType)reflectedType.BaseType; 211bindingFlags = RuntimeType.FilterPreCalculate(isPseudoPublic, isInherited, isPseudoStatic);
system\reflection\ConstructorInfo.cs (11)
26using MemberListType = System.RuntimeType.MemberListType; 27using RuntimeTypeCache = System.RuntimeType.RuntimeTypeCache; 165private volatile RuntimeType m_declaringType; 270RuntimeMethodHandleInternal handle, RuntimeType declaringType, RuntimeTypeCache reflectedTypeCache, 345private RuntimeType ReflectedTypeInternal 398return CustomAttribute.GetCustomAttributes(this, typeof(object) as RuntimeType); 407RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 422RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 472internal RuntimeType GetRuntimeType() { return m_declaringType; }
system\reflection\customattribute.cs (174)
69internal static IList<CustomAttributeData> GetCustomAttributesInternal(RuntimeType target) 76Attribute[] a = PseudoCustomAttribute.GetCustomAttributes((RuntimeType)target, typeof(object) as RuntimeType, true, out pcaCount); 99Attribute[] a = PseudoCustomAttribute.GetCustomAttributes((RuntimeFieldInfo)target, typeof(object) as RuntimeType, out pcaCount); 122Attribute[] a = PseudoCustomAttribute.GetCustomAttributes((RuntimeMethodInfo)target, typeof(object) as RuntimeType, true, out pcaCount); 180Attribute[] a = PseudoCustomAttribute.GetCustomAttributes(target, typeof(object) as RuntimeType, false, out pcaCount); 203Attribute[] a = PseudoCustomAttribute.GetCustomAttributes(target, typeof(object) as RuntimeType, out pcaCount); 218private static CustomAttributeEncoding TypeToCustomAttributeEncoding(RuntimeType type) 220if (type == (RuntimeType)typeof(int)) 226if (type == (RuntimeType)typeof(string)) 229if (type == (RuntimeType)typeof(Type)) 232if (type == (RuntimeType)typeof(object)) 238if (type == (RuntimeType)typeof(char)) 241if (type == (RuntimeType)typeof(bool)) 244if (type == (RuntimeType)typeof(byte)) 247if (type == (RuntimeType)typeof(sbyte)) 250if (type == (RuntimeType)typeof(short)) 253if (type == (RuntimeType)typeof(ushort)) 256if (type == (RuntimeType)typeof(uint)) 259if (type == (RuntimeType)typeof(long)) 262if (type == (RuntimeType)typeof(ulong)) 265if (type == (RuntimeType)typeof(float)) 268if (type == (RuntimeType)typeof(double)) 272if (type == (RuntimeType)typeof(Enum)) 286private static CustomAttributeType InitCustomAttributeType(RuntimeType parameterType) 295parameterType = (RuntimeType)parameterType.GetElementType(); 301encodedEnumType = TypeToCustomAttributeEncoding((RuntimeType)Enum.GetUnderlyingType(parameterType)); 373m_ctor = (RuntimeConstructorInfo)RuntimeType.GetMethodBase(scope, caRecord.tkCtor); 378m_ctorParams[i] = new CustomAttributeCtorParameter(InitCustomAttributeType((RuntimeType)parameters[i].ParameterType)); 385fields[i].Name, CustomAttributeEncoding.Field, InitCustomAttributeType((RuntimeType)fields[i].FieldType)); 388properties[i].Name, CustomAttributeEncoding.Property, InitCustomAttributeType((RuntimeType)properties[i].PropertyType)); 798private static RuntimeType ResolveType(RuntimeModule scope, string typeName) 800RuntimeType type = RuntimeTypeHandle.GetTypeByNameUsingCARules(typeName, scope); 1181private static RuntimeType Type_RuntimeType = (RuntimeType)typeof(RuntimeType); 1182private static RuntimeType Type_Type = (RuntimeType)typeof(Type); 1187internal static bool IsDefined(RuntimeType type, RuntimeType caType, bool inherit) 1203type = type.BaseType as RuntimeType; 1210type = type.BaseType as RuntimeType; 1217internal static bool IsDefined(RuntimeMethodInfo method, RuntimeType caType, bool inherit) 1245internal static bool IsDefined(RuntimeConstructorInfo ctor, RuntimeType caType) 1257internal static bool IsDefined(RuntimePropertyInfo property, RuntimeType caType) 1269internal static bool IsDefined(RuntimeEventInfo e, RuntimeType caType) 1281internal static bool IsDefined(RuntimeFieldInfo field, RuntimeType caType) 1293internal static bool IsDefined(RuntimeParameterInfo parameter, RuntimeType caType) 1305internal static bool IsDefined(RuntimeAssembly assembly, RuntimeType caType) 1317internal static bool IsDefined(RuntimeModule module, RuntimeType caType) 1329internal static Object[] GetCustomAttributes(RuntimeType type, RuntimeType caType, bool inherit) 1338type = type.GetGenericTypeDefinition() as RuntimeType; 1361while (type != (RuntimeType)typeof(object) && type != null) 1368type = type.BaseType as RuntimeType; 1376private static bool AllowCriticalCustomAttributes(RuntimeType type) 1390type = type.DeclaringType as RuntimeType; 1398private static bool SpecialAllowCriticalAttributes(RuntimeType type) 1417SpecialAllowCriticalAttributes((RuntimeType)method.DeclaringType); 1423SpecialAllowCriticalAttributes((RuntimeType)field.DeclaringType); 1433internal static Object[] GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, bool inherit) 1478internal static Object[] GetCustomAttributes(RuntimeConstructorInfo ctor, RuntimeType caType) 1491internal static Object[] GetCustomAttributes(RuntimePropertyInfo property, RuntimeType caType) 1510internal static Object[] GetCustomAttributes(RuntimeEventInfo e, RuntimeType caType) 1528internal static Object[] GetCustomAttributes(RuntimeFieldInfo field, RuntimeType caType) 1541internal static Object[] GetCustomAttributes(RuntimeParameterInfo parameter, RuntimeType caType) 1554internal static Object[] GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) 1569internal static Object[] GetCustomAttributes(RuntimeModule module, RuntimeType caType) 1590RuntimeModule decoratedModule, int decoratedMetadataToken, RuntimeType attributeFilterType) 1597RuntimeModule decoratedModule, int decoratedMetadataToken, RuntimeType attributeFilterType, int attributeCtorToken, bool mustBeInheritable) 1610RuntimeType attributeType; 1647RuntimeModule decoratedModule, int decoratedMetadataToken, int pcaCount, RuntimeType attributeFilterType, bool isDecoratedTargetSecurityTransparent) 1655RuntimeType attributeFilterType, bool mustBeInheritable, IList derivedAttributes, bool isDecoratedTargetSecurityTransparent) 1693RuntimeType attributeType = null; 1761RuntimeType type; 1775type = (RuntimeType)value.GetType(); 1853RuntimeType attributeFilterType, 1857out RuntimeType attributeType, 1885attributeType = decoratedModule.ResolveType(scope.GetParentToken(caRecord.tkCtor), null, null) as RuntimeType; 1980RuntimeType attributeType, bool mustBeInheritable, object[] attributes, IList derivedAttributes) 2012internal static AttributeUsageAttribute GetAttributeUsage(RuntimeType decoratedAttribute) 2023RuntimeType attributeType = decoratedModule.ResolveType(scope.GetParentToken(caRecord.tkCtor), null, null) as RuntimeType; 2025if (attributeType != (RuntimeType)typeof(AttributeUsageAttribute)) 2080RuntimeModule pModule, byte** ppBlobStart, byte* pBlobEnd, out string name, out bool bIsProperty, out RuntimeType type, out object value); 2083RuntimeModule module, ref IntPtr blobStart, IntPtr blobEnd, out string name, out bool isProperty, out RuntimeType type, out object value) 2106private static Dictionary<RuntimeType, RuntimeType> s_pca; 2126RuntimeType[] pcas = new RuntimeType[] 2129typeof(FieldOffsetAttribute) as RuntimeType, // field 2131typeof(SerializableAttribute) as RuntimeType, // class, struct, enum, delegate 2133typeof(MarshalAsAttribute) as RuntimeType, // parameter, field, return-value 2134typeof(ComImportAttribute) as RuntimeType, // class, interface 2136typeof(NonSerializedAttribute) as RuntimeType, // field, inherited 2138typeof(InAttribute) as RuntimeType, // parameter 2139typeof(OutAttribute) as RuntimeType, // parameter 2140typeof(OptionalAttribute) as RuntimeType, // parameter 2141typeof(DllImportAttribute) as RuntimeType, // method 2142typeof(PreserveSigAttribute) as RuntimeType, // method 2143typeof(TypeForwardedToAttribute) as RuntimeType, // assembly 2147Dictionary<RuntimeType, RuntimeType> temp_pca = new Dictionary<RuntimeType, RuntimeType>(s_pcasCount); 2159private static void VerifyPseudoCustomAttribute(RuntimeType pca) 2163Contract.Assert(pca.BaseType == (RuntimeType)typeof(Attribute), "Pseudo CA Error"); 2172internal static bool IsSecurityAttribute(RuntimeType type) 2175return type == (RuntimeType)typeof(SecurityAttribute) || type.IsSubclassOf(typeof(SecurityAttribute)); 2180internal static Attribute[] GetCustomAttributes(RuntimeType type, RuntimeType caType, bool includeSecCa, out int count) 2187bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2195if (all || caType == (RuntimeType)typeof(SerializableAttribute)) 2201if (all || caType == (RuntimeType)typeof(ComImportAttribute)) 2211type = (RuntimeType)type.GetGenericTypeDefinition(); 2226internal static bool IsDefined(RuntimeType type, RuntimeType caType) 2228bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2233if (all || caType == (RuntimeType)typeof(SerializableAttribute)) 2238if (all || caType == (RuntimeType)typeof(ComImportAttribute)) 2253internal static Attribute[] GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, bool includeSecCa, out int count) 2260bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2267if (all || caType == (RuntimeType)typeof(DllImportAttribute)) 2272if (all || caType == (RuntimeType)typeof(PreserveSigAttribute)) 2292internal static bool IsDefined(RuntimeMethodInfo method, RuntimeType caType) 2294bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2298if (all || caType == (RuntimeType)typeof(DllImportAttribute)) 2302if (all || caType == (RuntimeType)typeof(PreserveSigAttribute)) 2318internal static Attribute[] GetCustomAttributes(RuntimeParameterInfo parameter, RuntimeType caType, out int count) 2325bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2332if (all || caType == (RuntimeType)typeof(InAttribute)) 2337if (all || caType == (RuntimeType)typeof(OutAttribute)) 2342if (all || caType == (RuntimeType)typeof(OptionalAttribute)) 2347if (all || caType == (RuntimeType)typeof(MarshalAsAttribute)) 2355internal static bool IsDefined(RuntimeParameterInfo parameter, RuntimeType caType) 2357bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2362if (all || caType == (RuntimeType)typeof(InAttribute)) 2366if (all || caType == (RuntimeType)typeof(OutAttribute)) 2370if (all || caType == (RuntimeType)typeof(OptionalAttribute)) 2374if (all || caType == (RuntimeType)typeof(MarshalAsAttribute)) 2383internal static Attribute[] GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType, bool includeSecCa, out int count) 2387bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2418internal static bool IsDefined(RuntimeAssembly assembly, RuntimeType caType) 2424internal static Attribute[] GetCustomAttributes(RuntimeModule module, RuntimeType caType, out int count) 2429internal static bool IsDefined(RuntimeModule module, RuntimeType caType) 2435internal static Attribute[] GetCustomAttributes(RuntimeFieldInfo field, RuntimeType caType, out int count) 2442bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2449if (all || caType == (RuntimeType)typeof(MarshalAsAttribute)) 2454if (all || caType == (RuntimeType)typeof(FieldOffsetAttribute)) 2460if (all || caType == (RuntimeType)typeof(NonSerializedAttribute)) 2469internal static bool IsDefined(RuntimeFieldInfo field, RuntimeType caType) 2471bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2475if (all || caType == (RuntimeType)typeof(MarshalAsAttribute)) 2479if (all || caType == (RuntimeType)typeof(FieldOffsetAttribute)) 2484if (all || caType == (RuntimeType)typeof(NonSerializedAttribute)) 2494internal static Attribute[] GetCustomAttributes(RuntimeConstructorInfo ctor, RuntimeType caType, bool includeSecCa, out int count) 2498bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2520internal static bool IsDefined(RuntimeConstructorInfo ctor, RuntimeType caType) 2522bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2538internal static Attribute[] GetCustomAttributes(RuntimePropertyInfo property, RuntimeType caType, out int count) 2543internal static bool IsDefined(RuntimePropertyInfo property, RuntimeType caType) 2548internal static Attribute[] GetCustomAttributes(RuntimeEventInfo e, RuntimeType caType, out int count) 2553internal static bool IsDefined(RuntimeEventInfo e, RuntimeType caType)
system\reflection\emit\assemblybuilder.cs (1)
1972if (type is RuntimeType)
system\reflection\emit\dynamicilgenerator.cs (16)
70RuntimeType rtType = localType as RuntimeType; 108RuntimeType declaringType = rtMeth.GetRuntimeType(); 160RuntimeType declaringType = rtConstructor.GetRuntimeType(); 184RuntimeType rtType = type as RuntimeType; 411RuntimeType rtType = exceptionType as RuntimeType; 557private int GetTokenFor(RuntimeType rtType) 581private int GetTokenFor(RuntimeFieldInfo runtimeField, RuntimeType rtType) 608private int GetTokenFor(RuntimeConstructorInfo rtMeth, RuntimeType rtType) 634private int GetTokenFor(RuntimeMethodInfo rtMeth, RuntimeType rtType) 813internal override RuntimeType GetJitContext(ref int securityControlFlags) 815RuntimeType typeOwner; 1235RuntimeType type = RuntimeMethodHandle.GetDeclaringType(rmhi); 1239MethodBase m = RuntimeType.GetMethodBase(methodReal);
system\reflection\emit\dynamicmethod.cs (18)
26private RuntimeType[] m_parameterTypes; 28private RuntimeType m_returnType; 37internal RuntimeType m_typeOwner; // can be null 359m_parameterTypes = new RuntimeType[signature.Length]; 363m_parameterTypes[i] = signature[i].UnderlyingSystemType as RuntimeType; 364if ( m_parameterTypes[i] == null || !(m_parameterTypes[i] is RuntimeType) || m_parameterTypes[i] == (RuntimeType)typeof(void) ) 369m_parameterTypes = new RuntimeType[0]; 373m_returnType = (returnType == null) ? (RuntimeType)typeof(void) : returnType.UnderlyingSystemType as RuntimeType; 374if ( (m_returnType == null) || !(m_returnType is RuntimeType) || m_returnType.IsByRef ) 400RuntimeType rtOwner = null; 402rtOwner = owner.UnderlyingSystemType as RuntimeType; 469RuntimeType callingType = RuntimeMethodHandle.GetCallerType(ref stackMark); 490RuntimeType rtOwner = owner as RuntimeType; 492rtOwner = owner.UnderlyingSystemType as RuntimeType; 498RuntimeType callingType = RuntimeMethodHandle.GetCallerType(ref stackMark);
system\reflection\emit\methodrental.cs (2)
75RuntimeType rType; 90rType = cls as RuntimeType;
system\reflection\emit\modulebuilder.cs (2)
502RuntimeType rtType = type as RuntimeType;
system\reflection\emit\signaturehelper.cs (2)
473if (clsArgument is RuntimeType) 475type = RuntimeTypeHandle.GetCorElementType((RuntimeType)clsArgument);
system\reflection\emit\typebuilder.cs (11)
458Contract.Assert(destType is RuntimeType, "destType is not a runtime type, an EnumBuilder, or a TypeBuilder."); 476CorElementType corType = RuntimeTypeHandle.GetCorElementType((RuntimeType)type); 552private RuntimeType m_bakedRuntimeType; 982internal RuntimeType BakedRuntimeType 1314if (fromRuntimeType != null && fromRuntimeType is RuntimeType) 1514return CustomAttribute.GetCustomAttributes(m_bakedRuntimeType, typeof(object) as RuntimeType, inherit); 1527RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 1545RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 2450RuntimeType cls = null;
system\reflection\eventinfo.cs (10)
19using RuntimeTypeCache = System.RuntimeType.RuntimeTypeCache; 242private RuntimeType m_declaringType; 252internal RuntimeEventInfo(int tkEvent, RuntimeType declaredType, RuntimeTypeCache reflectedTypeCache, out bool isPrivate) 265RuntimeType reflectedType = reflectedTypeCache.GetRuntimeType(); 306return CustomAttribute.GetCustomAttributes(this, typeof(object) as RuntimeType); 315RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 330RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 366private RuntimeType ReflectedTypeInternal
system\reflection\fieldinfo.cs (37)
26using RuntimeTypeCache = System.RuntimeType.RuntimeTypeCache; 43FieldInfo f = RuntimeType.GetFieldInfo(handle.GetRuntimeFieldInfo()); 60return RuntimeType.GetFieldInfo(declaringType.GetRuntimeType(), handle.GetRuntimeFieldInfo()); 230protected RuntimeType m_declaringType; 238protected RuntimeFieldInfo(RuntimeTypeCache reflectedTypeCache, RuntimeType declaringType, BindingFlags bindingFlags) 278private RuntimeType ReflectedTypeInternal 286internal RuntimeType GetDeclaringTypeInternal() 291internal RuntimeType GetRuntimeType() { return m_declaringType; } 329return CustomAttribute.GetCustomAttributes(this, typeof(object) as RuntimeType); 338RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 353RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 395static private extern void PerformVisibilityCheckOnField(IntPtr field, Object target, RuntimeType declaringType, FieldAttributes attr, uint invocationFlags); 404private RuntimeType m_fieldType; 493RuntimeFieldHandleInternal handle, RuntimeType declaringType, RuntimeTypeCache reflectedTypeCache, BindingFlags bindingFlags) 557RuntimeType declaringType = DeclaringType as RuntimeType; 572RuntimeType fieldType = (RuntimeType)FieldType; 613RuntimeType declaringType = DeclaringType as RuntimeType; 614RuntimeType fieldType = (RuntimeType)FieldType; 636RuntimeType declaringType = DeclaringType as RuntimeType; 660RuntimeType fieldType = (RuntimeType)FieldType; 678RuntimeType declaringType = DeclaringType as RuntimeType; 680RuntimeType fieldType = (RuntimeType)FieldType; 754return RuntimeFieldHandle.GetValueDirect(this, (RuntimeType)FieldType, &obj, (RuntimeType)DeclaringType); 779RuntimeFieldHandle.SetValueDirect(this, (RuntimeType)FieldType, &obj, value, (RuntimeType)DeclaringType); 840private RuntimeType m_fieldType;
system\reflection\mdconstant.cs (2)
25RuntimeType fieldType = fieldTypeHandle.GetRuntimeType(); 79return RuntimeType.CreateEnum(fieldType, defaultValue);
system\reflection\memberinfoserializationholder.cs (4)
21public static void GetSerializationInfo(SerializationInfo info, String name, RuntimeType reflectedClass, String signature, MemberTypes type) 29RuntimeType reflectedClass, 55private RuntimeType m_reflectedType; 80m_reflectedType = assem.GetType(typeName, true, false) as RuntimeType;
system\reflection\methodbase.cs (3)
67MethodBase m = RuntimeType.GetMethodBase(handle.GetMethodInfo()); 84return RuntimeType.GetMethodBase(declaringType.GetRuntimeType(), handle.GetMethodInfo()); 348RuntimeType argRT = sig.Arguments[i];
system\reflection\methodbody.cs (1)
143private RuntimeType m_type;
system\reflection\methodinfo.cs (35)
27using MemberListType = System.RuntimeType.MemberListType; 28using RuntimeTypeCache = System.RuntimeType.RuntimeTypeCache; 142private RuntimeType m_declaringType; 168if (((RuntimeType)t).IsNonW8PFrameworkAPI()) 252RuntimeMethodHandleInternal handle, RuntimeType declaringType, 309private RuntimeType ReflectedTypeInternal 392RuntimeType parent = (RuntimeType)m_declaringType.BaseType; 402return (RuntimeMethodInfo)RuntimeType.GetMethodBase(parent, RuntimeTypeHandle.GetMethodAt(parent, slot)); 406internal RuntimeType GetDeclaringTypeInternal() 480return CustomAttribute.GetCustomAttributes(this, typeof(object) as RuntimeType as RuntimeType, inherit); 490RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 504RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 560internal RuntimeType GetRuntimeType() { return m_declaringType; } 833RuntimeType declaringType = (RuntimeType)DeclaringType; 834RuntimeType baseDeclaringType = declaringType; 846declaringType = (RuntimeType)declaringType.BaseType; 849return(MethodInfo)RuntimeType.GetMethodBase(baseDeclaringType, baseMethodHandle); 897RuntimeType rtType = delegateType as RuntimeType; 923RuntimeType[] methodInstantionRuntimeType = new RuntimeType[methodInstantiation.Length]; 936RuntimeType rtMethodInstantiationElem = methodInstantiationElem as RuntimeType; 950RuntimeType[] genericParameters = GetGenericArgumentsInternal(); 952RuntimeType.SanityCheckGenericArguments(methodInstantionRuntimeType, genericParameters); 958ret = RuntimeType.GetMethodBase(ReflectedTypeInternal, 963RuntimeType.ValidateGenericArguments(this, methodInstantionRuntimeType, e); 970internal RuntimeType[] GetGenericArgumentsInternal() 992return RuntimeType.GetMethodBase(m_declaringType, RuntimeMethodHandle.StripMethodInstantiation(this)) as MethodInfo; 1062return RuntimeType.GetMethodBase(method);
system\reflection\module.cs (16)
620private extern static RuntimeType[] GetTypes(RuntimeModule module); 623internal RuntimeType[] GetDefinedTypes() 658if (!(typeArg is RuntimeType)) 735return System.RuntimeType.GetMethodBase(declaringType as RuntimeType, methodHandle); 810RuntimeType declaringType = RuntimeFieldHandle.GetApproxDeclaringType(fieldHandle.Value); 815declaringType = (RuntimeType)ResolveType(tkDeclaringType, genericTypeArguments, genericMethodArguments); 818return System.RuntimeType.GetFieldInfo(declaringType, fieldHandle); 947private RuntimeType m_runtimeType; 981internal RuntimeType RuntimeType 1014return CustomAttribute.GetCustomAttributes(this, typeof(object) as RuntimeType); 1023RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 1038RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 1072RuntimeType retType = null;
system\reflection\parameterinfo.cs (6)
514RuntimeType parameterType; 734return CustomAttribute.GetCustomAttributes(this, typeof(object) as RuntimeType); 746RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 764RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType;
system\reflection\pointer.cs (6)
28private RuntimeType _ptrType; 36_ptrType = (RuntimeType)info.GetValue("_ptrType", typeof(RuntimeType)); 50RuntimeType rt = type as RuntimeType; 68internal RuntimeType GetPointerType() {
system\reflection\propertyinfo.cs (10)
22using RuntimeTypeCache = System.RuntimeType.RuntimeTypeCache; 204private RuntimeType m_declaringType; 213int tkProperty, RuntimeType declaredType, RuntimeTypeCache reflectedTypeCache, out bool isPrivate) 360RuntimeType[] arguments = Signature.Arguments; 375return CustomAttribute.GetCustomAttributes(this, typeof(object) as RuntimeType); 384RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 399RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 442private RuntimeType ReflectedTypeInternal
system\reflection\RuntimeReflectionExtensions.cs (2)
13if (!(t is RuntimeType)) throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType")); 73if (!(typeInfo is RuntimeType)) throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"));
system\resources\resourcemanager.cs (1)
426if (!(resourceSource is RuntimeType))
system\resources\resourcereader.cs (10)
104private RuntimeType[] _typeTable; // Lazy array of Types for resource values. 609RuntimeType type = FindType(typeIndex); 811RuntimeType type = FindType(typeIndex); 962_typeTable = new RuntimeType[numTypes]; 1078private RuntimeType FindType(int typeIndex) 1088_typeTable[typeIndex] = (RuntimeType)Type.GetType(typeName, true); 1132RuntimeType resourceType = (RuntimeType)Type.GetType(typeName, false); 1281private RuntimeType _typeToDeserialize; 1294internal void ExpectingToDeserialize(RuntimeType type)
system\rttype.cs (205)
38using RuntimeTypeCache = System.RuntimeType.RuntimeTypeCache; 327internal MethodBase AddMethod(RuntimeType declaringType, RuntimeMethodHandleInternal method, CacheType cacheType) 334BindingFlags bindingFlags = RuntimeType.FilterPreCalculate(isPublic, isInherited, isStatic); 361RuntimeType approxDeclaringType = RuntimeFieldHandle.GetApproxDeclaringType(field); 366BindingFlags bindingFlags = RuntimeType.FilterPreCalculate(isPublic, isInherited, isStatic); 627RuntimeType declaringType = ReflectedType; 664BindingFlags bindingFlags = RuntimeType.FilterPreCalculate(isPublic, isInherited, isStatic); 775BindingFlags bindingFlags = RuntimeType.FilterPreCalculate(isPublic, isInherited, isStatic); 806RuntimeType declaringType= ReflectedType; 838BindingFlags bindingFlags = RuntimeType.FilterPreCalculate(isPublic, isInherited, isStatic); 858RuntimeType declaringType = ReflectedType; 882PopulateLiteralFields(filter, (RuntimeType)interfaces[i], ref list); 883PopulateRtFields(filter, (RuntimeType)interfaces[i], ref list); 895PopulateLiteralFields(filter, (RuntimeType)interfaces[i], ref list); 896PopulateRtFields(filter, (RuntimeType)interfaces[i], ref list); 906private unsafe void PopulateRtFields(Filter filter, RuntimeType declaringType, ref ListBuilder<RuntimeFieldInfo> list) 927IntPtr* ppFieldHandles, int count, RuntimeType declaringType, ref ListBuilder<RuntimeFieldInfo> list) 965BindingFlags bindingFlags = RuntimeType.FilterPreCalculate(isPublic, isInherited, isStatic); 980private unsafe void PopulateLiteralFields(Filter filter, RuntimeType declaringType, ref ListBuilder<RuntimeFieldInfo> list) 1029BindingFlags bindingFlags = RuntimeType.FilterPreCalculate(isPublic, isInherited, isStatic); 1063private void AddSpecialInterface(ref ListBuilder<RuntimeType> list, Filter filter, RuntimeType iList, bool addSubInterface) 1075RuntimeType iFace = (RuntimeType)iFaces[j]; 1085private RuntimeType[] PopulateInterfaces(Filter filter) 1087ListBuilder<RuntimeType> list = new ListBuilder<RuntimeType>(); 1089RuntimeType declaringType = ReflectedType; 1099RuntimeType interfaceType = (RuntimeType)ifaces[i]; 1114RuntimeType arrayType = (RuntimeType)ReflectedType.GetElementType(); 1118AddSpecialInterface(ref list, filter, (RuntimeType)typeof(IList<>).MakeGenericType(arrayType), true); 1122AddSpecialInterface(ref list, filter, (RuntimeType)typeof(IReadOnlyList<>).MakeGenericType(arrayType), false); 1123AddSpecialInterface(ref list, filter, (RuntimeType)typeof(IReadOnlyCollection<>).MakeGenericType(arrayType), false); 1129List<RuntimeType> al = new List<RuntimeType>(); 1137RuntimeType constraint = (RuntimeType)constraints[i]; 1143al.Add(temp[j] as RuntimeType); 1147Dictionary<RuntimeType, RuntimeType> ht = new Dictionary<RuntimeType, RuntimeType>(); 1150RuntimeType constraint = al[i]; 1155RuntimeType[] interfaces = new RuntimeType[ht.Values.Count]; 1175private unsafe RuntimeType[] PopulateNestedClasses(Filter filter) 1177RuntimeType declaringType = ReflectedType; 1188return EmptyArray<RuntimeType>.Value; 1190ListBuilder<RuntimeType> list = new ListBuilder<RuntimeType>(); 1200RuntimeType nestedType = null; 1234RuntimeType declaringType = ReflectedType; 1260Filter filter, RuntimeType declaringType, Dictionary<String, RuntimeEventInfo> csEventInfos, ref ListBuilder<RuntimeEventInfo> list) 1327RuntimeType declaringType = ReflectedType; 1363RuntimeType declaringType, 1557internal RuntimeType ReflectedType 1569private RuntimeType m_runtimeType; 1570private RuntimeType m_enclosingType; 1582private MemberInfoCache<RuntimeType> m_interfaceCache; 1583private MemberInfoCache<RuntimeType> m_nestedClassesCache; 1596internal RuntimeTypeCache(RuntimeType runtimeType) 1719m_namespace = RuntimeTypeHandle.GetMetadataImport((RuntimeType)type).GetNamespace(type.MetadataToken).ToString(); 1732internal unsafe RuntimeType GetEnclosingType() 1737RuntimeType enclosingType = RuntimeTypeHandle.GetDeclaringType(GetRuntimeType()); 1739m_enclosingType = enclosingType ?? (RuntimeType)typeof(void); 1745internal RuntimeType GetRuntimeType() 1787for (RuntimeType t = m_runtimeType; t != null; t = t.GetBaseType()) 1901internal RuntimeType[] GetInterfaceList(MemberListType listType, string name) 1903return GetMemberList<RuntimeType>(ref m_interfaceCache, listType, name, CacheType.Interface); 1906internal RuntimeType[] GetNestedTypeList(MemberListType listType, string name) 1908return GetMemberList<RuntimeType>(ref m_nestedClassesCache, listType, name, CacheType.NestedType); 1911internal MethodBase GetMethod(RuntimeType declaringType, RuntimeMethodHandleInternal method) 1917internal MethodBase GetConstructor(RuntimeType declaringType, RuntimeMethodHandleInternal constructor) 1966internal static RuntimeType GetType(String typeName, bool throwOnError, bool ignoreCase, bool reflectionOnly, 1993internal static MethodBase GetMethodBase(RuntimeType reflectedType, IRuntimeMethodInfo methodHandle) 1995MethodBase retval = RuntimeType.GetMethodBase(reflectedType, methodHandle.Value); 2001internal unsafe static MethodBase GetMethodBase(RuntimeType reflectedType, RuntimeMethodHandleInternal methodHandle) 2016RuntimeType declaredType = RuntimeMethodHandle.GetDeclaringType(methodHandle); 2018RuntimeType[] methodInstantiation = null; 2021reflectedType = declaredType as RuntimeType; 2057RuntimeType declaringDefinition = (RuntimeType)declaredType.GetGenericTypeDefinition(); 2059RuntimeType baseType = reflectedType; 2063RuntimeType baseDefinition = baseType; 2066baseDefinition = (RuntimeType)baseDefinition.GetGenericTypeDefinition(); 2152internal unsafe static FieldInfo GetFieldInfo(RuntimeType reflectedType, IRuntimeFieldInfo field) 2163RuntimeType declaredType = RuntimeFieldHandle.GetApproxDeclaringType(fieldHandle); 2183private unsafe static PropertyInfo GetPropertyInfo(RuntimeType reflectedType, int tkProperty) 2200private static void ThrowIfTypeNeverValidGenericArgument(RuntimeType type) 2208internal static void SanityCheckGenericArguments(RuntimeType[] genericArguments, RuntimeType[] genericParamters) 2228internal static void ValidateGenericArguments(MemberInfo definition, RuntimeType[] genericArguments, Exception e) 2230RuntimeType[] typeContext = null; 2231RuntimeType[] methodContext = null; 2232RuntimeType[] genericParamters = null; 2236RuntimeType genericTypeDefinition = (RuntimeType)definition; 2246RuntimeType declaringType = (RuntimeType)genericMethodDefinition.DeclaringType; 2484Contract.Assert(type is RuntimeType); 2489if (!RuntimeType.FilterApplyBase(type, bindingFlags, isPublic, type.IsNestedAssembly, isStatic, name, prefixLookup)) 2662return ((RuntimeType)GetElementType()).IsNonW8PFrameworkAPI(); 2671if (((RuntimeType)t).IsNonW8PFrameworkAPI()) 2712internal static readonly RuntimeType ValueType = (RuntimeType)typeof(System.ValueType); 2713internal static readonly RuntimeType EnumType = (RuntimeType)typeof(System.Enum); 2715private static readonly RuntimeType ObjectType = (RuntimeType)typeof(System.Object); 2716private static readonly RuntimeType StringType = (RuntimeType)typeof(System.String); 2717private static readonly RuntimeType DelegateType = (RuntimeType)typeof(System.Delegate); 2730RuntimeType m = o as RuntimeType; 2771RuntimeType rt = this; 2778if (rt == RuntimeType.DelegateType || rt == RuntimeType.EnumType) 2809RuntimeType.FilterHelper(bindingAttr, ref name, allowPrefixLookup, out prefixLookup, out ignoreCase, out listType); 2818(!prefixLookup || RuntimeType.FilterApplyPrefixLookup(methodInfo, name, ignoreCase))) 2833RuntimeType.FilterHelper(bindingAttr, ref name, allowPrefixLookup, out prefixLookup, out ignoreCase, out listType); 2842(!prefixLookup || RuntimeType.FilterApplyPrefixLookup(constructorInfo, name, ignoreCase))) 2857RuntimeType.FilterHelper(bindingAttr, ref name, allowPrefixLookup, out prefixLookup, out ignoreCase, out listType); 2874(!prefixLookup || RuntimeType.FilterApplyPrefixLookup(propertyInfo, name, ignoreCase)) && 2972RuntimeType.FilterHelper(bindingAttr, ref name, allowPrefixLookup, out prefixLookup, out ignoreCase, out listType); 2983(!prefixLookup || RuntimeType.FilterApplyPrefixLookup(eventInfo, name, ignoreCase))) 2996RuntimeType.FilterHelper(bindingAttr, ref name, allowPrefixLookup, out prefixLookup, out ignoreCase, out listType); 3023RuntimeType.FilterHelper(bindingAttr, ref name, allowPrefixLookup, out prefixLookup, out ignoreCase, out listType); 3025RuntimeType[] cache = Cache.GetNestedTypeList(listType, name); 3030RuntimeType nestedClass = cache[i]; 3031if (RuntimeType.FilterApplyType(nestedClass, bindingAttr, name, prefixLookup, ns)) 3105RuntimeType[] candidates = this.Cache.GetInterfaceList(MemberListType.All, null); 3158RuntimeType ifaceRtType = ifaceType as RuntimeType; 3187MethodBase ifaceMethodBase = RuntimeType.GetMethodBase(ifaceRtType, ifaceRtMethodHandle); 3199MethodBase rtTypeMethodBase = RuntimeType.GetMethodBase(this, classRtMethodHandle); 3328RuntimeType.FilterHelper(bindingAttr, ref name, out ignoreCase, out listType); 3357RuntimeType.FilterHelper(bindingAttr, ref name, out ignoreCase, out listType); 3405RuntimeType.FilterHelper(bindingAttr, ref name, out ignoreCase, out listType); 3407RuntimeType[] cache = Cache.GetInterfaceList(listType, name); 3409RuntimeType match = null; 3413RuntimeType iface = cache[i]; 3414if (RuntimeType.FilterApplyType(iface, bindingAttr, name, false, ns)) 3436RuntimeType.FilterHelper(bindingAttr, ref name, out ignoreCase, out listType); 3438RuntimeType[] cache = Cache.GetNestedTypeList(listType, name); 3440RuntimeType match = null; 3444RuntimeType nestedType = cache[i]; 3445if (RuntimeType.FilterApplyType(nestedType, bindingAttr, name, false, ns)) 3682RuntimeType rtType = type as RuntimeType; 3686RuntimeType baseType = GetBaseType(); 3699if (rtType == RuntimeType.ObjectType && rtType != this) 3718RuntimeType fromType = c.UnderlyingSystemType as RuntimeType; 3757RuntimeType otherRtType = other as RuntimeType; 3778private RuntimeType GetBaseType() 3787RuntimeType baseType = RuntimeType.ObjectType; 3791RuntimeType constraint = (RuntimeType)constraints[i]; 3809if (baseType == RuntimeType.ObjectType) 3814baseType = RuntimeType.ValueType; 3953private static extern bool IsWindowsRuntimeObjectType(RuntimeType type); 3957private static extern bool IsTypeExportedToWindowsRuntime(RuntimeType type); 3988return GetBaseType() == RuntimeType.EnumType; 4113RuntimeType valueType = (RuntimeType)value.GetType(); 4121valueType = (RuntimeType)valueType.GetEnumUnderlyingType(); 4125if (valueType == RuntimeType.StringType) 4138RuntimeType underlyingType = Enum.InternalGetUnderlyingType(this); 4185internal RuntimeType[] GetGenericArgumentsInternal() 4207RuntimeType[] instantiationRuntimeType = new RuntimeType[instantiation.Length]; 4222RuntimeType rtInstantiationElem = instantiationElem as RuntimeType; 4236RuntimeType[] genericParameters = GetGenericArgumentsInternal(); 4350private static RuntimeType s_typedRef = (RuntimeType)typeof(TypedReference); 4355static private extern bool CanValueSpecialCast(RuntimeType valueType, RuntimeType targetType); 4360static private extern Object AllocateValueType(RuntimeType type, object value, bool fForceTypeChange); 4406RuntimeType elementType = RuntimeTypeHandle.GetElementType(this); 4426RuntimeType valueType; 4431valueType = (RuntimeType)value.GetType(); 4460RuntimeType elementType = RuntimeTypeHandle.GetElementType(this); 4468RuntimeType valueType; 4473valueType = (RuntimeType)value.GetType(); 4990public static bool operator ==(RuntimeType left, RuntimeType right) 4995public static bool operator !=(RuntimeType left, RuntimeType right) 5030return CustomAttribute.GetCustomAttributes(this, RuntimeType.ObjectType, inherit); 5040RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 5055RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType; 5287if (RuntimeType.DelegateType.IsAssignableFrom(invokeMethod.DeclaringType)) 5356internal readonly RuntimeType m_type; 5367internal ActivatorCacheEntry(RuntimeType t, RuntimeMethodHandleInternal rmh, bool bNeedSecurityCheck) 5418internal ActivatorCacheEntry GetEntry(RuntimeType t) 5565private static extern Object _CreateEnum(RuntimeType enumType, long value); 5567internal static Object CreateEnum(RuntimeType enumType, long value)
system\runtime\compilerservices\runtimehelpers.cs (1)
63private static extern void _RunClassConstructor(RuntimeType type);
system\runtime\interopservices\attributes.cs (8)
570RuntimeType safeArrayUserDefinedType = safeArrayUserDefinedTypeName == null || safeArrayUserDefinedTypeName.Length == 0 ? null : 572RuntimeType marshalTypeRef = null; 590internal MarshalAsAttribute(UnmanagedType val, VarEnum safeArraySubType, RuntimeType safeArrayUserDefinedSubType, UnmanagedType arraySubType, 591short sizeParamIndex, int sizeConst, string marshalType, RuntimeType marshalTypeRef, string marshalCookie, int iidParamIndex) 641internal static Attribute GetCustomAttribute(RuntimeType type) 649internal static bool IsDefined(RuntimeType type) 874internal static Attribute GetCustomAttribute(RuntimeType type) 908internal static bool IsDefined(RuntimeType type)
system\runtime\interopservices\marshal.cs (6)
219if (!(t is RuntimeType)) 983RuntimeType rt = structureType.UnderlyingSystemType as RuntimeType; 1680return RuntimeType.GetTypeFromCLSIDImpl(clsid, null, false); 2500internal static extern void InitializeManagedWinRTFactoryObject(object o, RuntimeType runtimeClassType); 2614if ((t as RuntimeType) == null)
system\runtime\interopservices\registrationservices.cs (2)
266if((type as RuntimeType) == null) 322if ((type as RuntimeType) == null)
system\runtime\interopservices\windowsruntime\clrireferenceimpl.cs (1)
333if (type == typeof(RuntimeType))
system\runtime\interopservices\windowsruntime\managedactivationfactory.cs (1)
48if (!(type is RuntimeType) || !type.IsExportedToWindowsRuntime)
system\runtime\interopservices\windowsruntime\windowsruntimemarshal.cs (1)
1221Marshal.InitializeManagedWinRTFactoryObject(activationFactory, (RuntimeType)type);
system\runtime\remoting\activationservices.cs (6)
158RuntimeType serverType, Object[] props, bool bNewObj) 203RuntimeType serverType, Object[] props, bool bNewObj) 237private static bool IsCurrentContextOK(RuntimeType serverType, Object[] props, 446internal static MarshalByRefObject CreateInstance(RuntimeType serverType) 1141RuntimeType activationType = ctorMsg.ActivationType as RuntimeType;
system\runtime\remoting\configuration.cs (3)
662internal static ActivatedClientTypeEntry IsRemotelyActivatedClientType(RuntimeType svrType) 695internal static WellKnownClientTypeEntry IsWellKnownClientType(RuntimeType svrType) 785internal static bool IsActivationAllowed(RuntimeType svrType)
system\runtime\remoting\message.cs (9)
443_MethodBase = RuntimeType.GetMethodBase(Type.GetTypeFromHandleUnsafe(_governingType), mh); 976private RuntimeType _activationType; 997Object[]womAttr, Object[] typeAttr, RuntimeType serverType) 3110RuntimeType t = ResolveType() as RuntimeType; 3288void ResolveOverloadedMethod(RuntimeType t) 3329void ResolveOverloadedMethod(RuntimeType t, String methodName, ArrayList argNames, ArrayList argValues) 3423RuntimeType t = ResolveType() as RuntimeType;
system\runtime\remoting\objref.cs (16)
144internal static String GetQualifiedTypeName(RuntimeType type) 180internal TypeInfo(RuntimeType typeOfObj) 185RuntimeType currType = (RuntimeType)typeOfObj.BaseType; 192currType = (RuntimeType)currType.BaseType; 203currType = (RuntimeType)typeOfObj.BaseType; 207currType = (RuntimeType)currType.BaseType; 225interfaceNames[i] = GetQualifiedTypeName((RuntimeType)interfaces[i]); 289internal DynamicTypeInfo(RuntimeType typeOfObj) : base(typeOfObj) 457RuntimeType rt = requestedType as RuntimeType; 959internal void Init(Object o, Identity idObj, RuntimeType requestedType) 972RuntimeType serverType = null; 975serverType = (RuntimeType)obj.GetType(); 979serverType = (RuntimeType)RemotingServices.GetRealProxy(obj).GetProxiedType(); 982RuntimeType typeOfObj = (null == requestedType ? serverType : requestedType);
system\runtime\remoting\proxyattribute.cs (3)
44RuntimeType rt = serverType as RuntimeType; 63internal MarshalByRefObject CreateInstanceInternal(RuntimeType serverType)
system\runtime\remoting\realproxy.cs (2)
721ctorMsg = new ConstructorCallMessage(null, null, null, (RuntimeType)GetProxiedType()); 747ctorMsg = new ConstructorCallMessage(null, null, null, (RuntimeType)GetProxiedType());
system\runtime\remoting\remotingattributes.cs (5)
114private RuntimeType RI; 128internal RemotingTypeCachedData(RuntimeType ri) 325_typeAndAssemblyName = RemotingServices.GetDefaultQualifiedTypeName((RuntimeType)mb.DeclaringType); 646XmlNamespaceEncoder.GetXmlNamespaceForTypeNamespace((RuntimeType)ReflectInfo, null); 802return XmlNamespaceEncoder.GetXmlNamespaceForType((RuntimeType)declaringType, null);
system\runtime\remoting\remotingconfiguration.cs (13)
251RuntimeType rt = svrType as RuntimeType; 278RuntimeType rt = svrType as RuntimeType; 301RuntimeType rt = svrType as RuntimeType; 370RuntimeType rtType = type as RuntimeType; 429RuntimeType rtType = type as RuntimeType; 493RuntimeType rtType = type as RuntimeType; 564if (!(type is RuntimeType))
system\runtime\remoting\remotingproxy.cs (6)
33private static RuntimeType s_typeofObject = (RuntimeType)typeof(System.Object); 34private static RuntimeType s_typeofMarshalByRefObject = (RuntimeType)typeof(System.MarshalByRefObject); 644RuntimeType rtType = castType as RuntimeType;
system\runtime\remoting\remotingservices.cs (29)
194RuntimeType typeToProxy, 211RuntimeType rTypeToProxy = typeToProxy as RuntimeType; 238RuntimeType objectType); 250RuntimeType rObjectType = objectType as RuntimeType; 271RuntimeType objectType); 278RuntimeType rObjectType = objectType as RuntimeType; 1722private static bool CheckCast(RealProxy rp, RuntimeType castType) 1782internal static bool ProxyCheckCast(RealProxy rp, RuntimeType castType) 1801internal static extern Object CheckCast(Object objToExpand, RuntimeType type); 1926RuntimeType rt = t as RuntimeType; 1946RuntimeType rt = t as RuntimeType; 1960RuntimeType rt = t as RuntimeType; 1969RuntimeType rt = t as RuntimeType; 2529internal static String GetDefaultQualifiedTypeName(RuntimeType type) 2638internal static RuntimeType InternalGetTypeFromQualifiedTypeName(String qualifiedTypeName, bool partialFallback) 2661RuntimeType type = (RuntimeType)SoapServices.GetInteropTypeFromXmlType(xmlTypeName, xmlTypeNamespace); 2684private unsafe static RuntimeType LoadClrTypeWithPartialBindFallback(String typeName, bool partialFallback) 2689return (RuntimeType)Type.GetType(typeName, false); 2811internal static RemotingTypeCachedData GetReflectionCachedData(RuntimeType type) 2819RuntimeType rt = null; 2825else if ((rt = mi as RuntimeType) != null)
system\runtime\remoting\soap.cs (3)
175if (!(type is RuntimeType)) 738internal static String GetXmlNamespaceForType(RuntimeType type, String dynamicUrl) 765internal static String GetXmlNamespaceForTypeNamespace(RuntimeType type, String dynamicUrl)
system\runtime\remoting\stackbuildersink.cs (5)
382RuntimeType declaringType = (RuntimeType)mb.DeclaringType; 411RuntimeType reflectedType = (RuntimeType)mb.ReflectedType; 440private static void VerifyNotIRemoteDispatch(RuntimeType reflectedType)
system\runtime\serialization\formatterservices.cs (24)
52private static MemberInfo[] GetSerializableMembers(RuntimeType type) { 76private static bool CheckSerializable(RuntimeType type) { 83private static MemberInfo[] InternalGetSerializableMembers(RuntimeType type) { 87RuntimeType parentType; 107parentType = (RuntimeType)(type.BaseType); 108if (parentType != null && parentType != (RuntimeType)typeof(Object)) { 109RuntimeType[] parentTypes = null; 142private static bool GetParentTypes(RuntimeType parentType, out RuntimeType[] parentTypes, out int parentTypeCount){ 148RuntimeType objectType = (RuntimeType)typeof(object); 149for (RuntimeType t1 = parentType; t1 != objectType; t1 = (RuntimeType)t1.BaseType) 162RuntimeType[] tempParentTypes = new RuntimeType[Math.Max(parentTypeCount*2, 12)]; 192if (!(type is RuntimeType)) { 200_ => InternalGetSerializableMembers((RuntimeType)type)); 238if (!(type is RuntimeType)) { 242return nativeGetUninitializedObject((RuntimeType)type); 252if (!(type is RuntimeType)) { 259return nativeGetUninitializedObject((RuntimeType)type); 263return nativeGetSafeUninitializedObject((RuntimeType)type); 273private static extern Object nativeGetSafeUninitializedObject(RuntimeType type); 278private static extern Object nativeGetUninitializedObject(RuntimeType type);
system\runtime\serialization\objectmanager.cs (5)
39private static RuntimeType TypeOfWindowsIdentity; 113TypeOfWindowsIdentity = (RuntimeType)typeof(WindowsIdentity); 869RuntimeType t = (RuntimeType)obj.GetType(); 894internal static RuntimeConstructorInfo GetConstructor(RuntimeType t)
system\runtime\serialization\safeserializationmanager.cs (9)
276private RuntimeType m_realType; 297RuntimeType realType = info.GetValueNoThrow(RealTypeSerializationName, typeof(RuntimeType)) as RuntimeType; 346info.AddValue(RealTypeSerializationName, serializedObject.GetType(), typeof(RuntimeType)); 399RuntimeType currentType = m_realType; 403currentType = currentType.BaseType as RuntimeType; 411RuntimeType previousType = null; 415currentType = inheritanceChain.Pop() as RuntimeType;
system\runtime\serialization\serializationeventscache.cs (7)
39RuntimeType rt = (RuntimeType)baseType; 105(SerializationEventHandler)Delegate.CreateDelegateNoSecurityCheck((RuntimeType)typeof(SerializationEventHandler), obj, m); 124(SerializationEventHandler)Delegate.CreateDelegateNoSecurityCheck((RuntimeType)typeof(SerializationEventHandler), obj, m); 143(SerializationEventHandler)Delegate.CreateDelegateNoSecurityCheck((RuntimeType)typeof(SerializationEventHandler), obj, m); 159(SerializationEventHandler)Delegate.CreateDelegateNoSecurityCheck((RuntimeType)typeof(SerializationEventHandler), obj, m); 175(SerializationEventHandler)Delegate.CreateDelegateNoSecurityCheck((RuntimeType)typeof(SerializationEventHandler), obj, m);
system\runtime\serialization\serializationinfo.cs (4)
525RuntimeType rt = type as RuntimeType; 561Contract.Assert(type is RuntimeType, "[SerializationInfo.GetValue]type is not a runtime type"); 570if (RemotingServices.ProxyCheckCast(proxy, (RuntimeType)type))
system\runtimehandles.cs (139)
36RuntimeType type = m_type; 43internal RuntimeType GetTypeChecked() 46RuntimeType type = m_type; 55internal extern static bool IsInstanceOfType(RuntimeType type, Object o); 107private RuntimeType m_type; 146internal RuntimeTypeHandle(RuntimeType type) 157internal static bool IsPrimitive(RuntimeType type) 166internal static bool IsByRef(RuntimeType type) 173internal static bool IsPointer(RuntimeType type) 180internal static bool IsArray(RuntimeType type) 187internal static bool IsSzArray(RuntimeType type) 194internal static bool HasElementType(RuntimeType type) 242internal static extern Object CreateInstance(RuntimeType type, bool publicOnly, bool noCheck, ref bool canBeCached, ref RuntimeMethodHandleInternal ctor, ref bool bNeedSecurityCheck); 247internal static extern Object CreateCaInstance(RuntimeType type, IRuntimeMethodInfo ctor); 252internal static extern Object Allocate(RuntimeType type); 257internal static extern Object CreateInstanceForAnotherGenericParameter(RuntimeType type, RuntimeType genericParameter); 259internal RuntimeType GetRuntimeType() 267internal extern static CorElementType GetCorElementType(RuntimeType type); 272internal extern static RuntimeAssembly GetAssembly(RuntimeType type); 278internal extern static RuntimeModule GetModule(RuntimeType type); 290internal extern static RuntimeType GetBaseType(RuntimeType type); 295internal extern static TypeAttributes GetAttributes(RuntimeType type); 300internal extern static RuntimeType GetElementType(RuntimeType type); 305internal extern static bool CompareCanonicalHandles(RuntimeType left, RuntimeType right); 310internal extern static int GetArrayRank(RuntimeType type); 315internal extern static int GetToken(RuntimeType type); 320internal extern static RuntimeMethodHandleInternal GetMethodAt(RuntimeType type, int slot); 329internal IntroducedMethodEnumerator(RuntimeType type) 363internal static IntroducedMethodEnumerator GetIntroducedMethods(RuntimeType type) 371private static extern RuntimeMethodHandleInternal GetFirstIntroducedMethod(RuntimeType type); 381internal extern static bool GetFields(RuntimeType type, IntPtr* result, int* count); 386internal extern static Type[] GetInterfaces(RuntimeType type); 418internal extern static int GetNumVirtuals(RuntimeType type); 449internal static extern bool IsZapped(RuntimeType type); 459internal extern static bool IsComObject(RuntimeType type, bool isGenericCOM); 464internal extern static bool IsContextful(RuntimeType type); 469internal extern static bool IsInterface(RuntimeType type); 479internal static bool IsVisible(RuntimeType type) 527internal extern static bool HasProxyAttribute(RuntimeType type); 532internal extern static bool IsValueType(RuntimeType type); 551private extern static void* _GetUtf8Name(RuntimeType type); 554internal static Utf8String GetUtf8Name(RuntimeType type) 562internal extern static bool CanCastTo(RuntimeType type, RuntimeType target); 567internal extern static RuntimeType GetDeclaringType(RuntimeType type); 572internal extern static IRuntimeMethodInfo GetDeclaringMethod(RuntimeType type); 600internal static RuntimeType GetTypeByName(string name, bool throwOnError, bool ignoreCase, bool reflectionOnly, ref StackCrawlMark stackMark, bool loadTypeFromPartialName) 607internal static RuntimeType GetTypeByName(string name, bool throwOnError, bool ignoreCase, bool reflectionOnly, ref StackCrawlMark stackMark, 621RuntimeType type = null; 645internal static RuntimeType GetTypeByNameUsingCARules(string name, RuntimeModule scope) 651RuntimeType type = null; 664internal RuntimeType[] GetInstantiationInternal() 666RuntimeType[] types = null; 686internal RuntimeType Instantiate(Type[] inst) 694RuntimeType type = null; 708internal RuntimeType MakeArray(int rank) 710RuntimeType type = null; 722internal RuntimeType MakeSZArray() 724RuntimeType type = null; 736internal RuntimeType MakeByRef() 741RuntimeType type = null; 760internal RuntimeType MakePointer() 762RuntimeType type = null; 778internal extern static bool HasInstantiation(RuntimeType type); 792internal static RuntimeType GetGenericTypeDefinition(RuntimeType type) 794RuntimeType retType = type; 805internal extern static bool IsGenericTypeDefinition(RuntimeType type); 810internal extern static bool IsGenericVariable(RuntimeType type); 820private extern static int GetGenericVariableIndex(RuntimeType type); 825RuntimeType type = GetTypeChecked(); 836internal extern static bool ContainsGenericVariables(RuntimeType handle); 847private extern static bool SatisfiesConstraints(RuntimeType paramType, IntPtr *pTypeContext, int typeContextLength, IntPtr *pMethodContext, int methodContextLength, RuntimeType toType); 850internal static bool SatisfiesConstraints(RuntimeType paramType, RuntimeType[] typeContext, RuntimeType[] methodContext, RuntimeType toType) 871private extern static IntPtr _GetMetadataImport(RuntimeType type); 874internal static MetadataImport GetMetadataImport(RuntimeType type) 886RuntimeType m = (RuntimeType)info.GetValue("TypeObj", typeof(RuntimeType)); 904info.AddValue("TypeObj", m_type, typeof(RuntimeType)); 911internal static extern bool IsEquivalentTo(RuntimeType rtType1, RuntimeType rtType2); 916internal static extern bool IsEquivalentType(RuntimeType type); 1074MethodBase methodInfo = RuntimeType.GetMethodBase(m_value); 1208internal extern static RuntimeType GetDeclaringType(RuntimeMethodHandleInternal method); 1211internal static RuntimeType GetDeclaringType(IRuntimeMethodInfo method) 1213RuntimeType type = RuntimeMethodHandle.GetDeclaringType(method.Value); 1289static extern internal void PerformSecurityCheck(Object obj, RuntimeMethodHandleInternal method, RuntimeType parent, uint invocationFlags); 1292static internal void PerformSecurityCheck(Object obj, IRuntimeMethodInfo method, RuntimeType parent, uint invocationFlags) 1370internal static RuntimeType[] GetMethodInstantiationInternal(IRuntimeMethodInfo method) 1372RuntimeType[] types = null; 1379internal static RuntimeType[] GetMethodInstantiationInternal(RuntimeMethodHandleInternal method) 1381RuntimeType[] types = null; 1389RuntimeType[] types = null; 1411internal extern static RuntimeMethodHandleInternal GetStubIfNeeded(RuntimeMethodHandleInternal method, RuntimeType declaringType, RuntimeType[] methodInstantiation); 1416internal extern static RuntimeMethodHandleInternal GetMethodFromCanonical(RuntimeMethodHandleInternal method, RuntimeType declaringType); 1491internal static RuntimeType GetCallerType(ref StackCrawlMark stackMark) 1493RuntimeType type = null; 1501internal extern static MethodBody GetMethodBody(IRuntimeMethodInfo method, RuntimeType declaringType); 1701internal static extern RuntimeType GetApproxDeclaringType(RuntimeFieldHandleInternal field); 1704internal static RuntimeType GetApproxDeclaringType(IRuntimeFieldInfo field) 1706RuntimeType type = GetApproxDeclaringType(field.Value); 1719internal static extern Object GetValue(RtFieldInfo field, Object instance, RuntimeType fieldType, RuntimeType declaringType, ref bool domainInitialized); 1724internal static extern Object GetValueDirect(RtFieldInfo field, RuntimeType fieldType, void *pTypedRef, RuntimeType contextType); 1729internal static extern void SetValue(RtFieldInfo field, Object obj, Object value, RuntimeType fieldType, FieldAttributes fieldAttr, RuntimeType declaringType, ref bool domainInitialized); 1734internal static extern void SetValueDirect(RtFieldInfo field, RuntimeType fieldType, void* pTypedRef, Object value, RuntimeType contextType); 1739internal static extern RuntimeFieldHandleInternal GetStaticFieldForGenericType(RuntimeFieldHandleInternal field, RuntimeType declaringType); 1820RuntimeFieldInfo fldInfo = (RuntimeFieldInfo)RuntimeType.GetFieldInfo(this.GetRuntimeFieldInfo()); 1923internal static RuntimeType ResolveTypeHandleInternal(RuntimeModule module, int typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) 1936RuntimeType type = null; 2079internal static RuntimeType GetModuleType(RuntimeModule module) 2081RuntimeType type = null; 2156RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType); 2164internal RuntimeType[] m_arguments; 2165internal RuntimeType m_declaringType; 2166internal RuntimeType m_returnTypeORfieldType; 2180RuntimeType[] arguments, 2181RuntimeType returnType, 2193public Signature(IRuntimeMethodInfo methodHandle, RuntimeType declaringType) 2199public Signature(IRuntimeFieldInfo fieldHandle, RuntimeType declaringType) 2206public Signature(void* pCorSig, int cCorSig, RuntimeType declaringType) 2214internal RuntimeType[] Arguments { get { return m_arguments; } } 2215internal RuntimeType ReturnType { get { return m_returnTypeORfieldType; } } 2216internal RuntimeType FieldType { get { return m_returnTypeORfieldType; } } 2251internal abstract RuntimeType GetJitContext(ref int securityControlFlags);
system\security\cryptography\cryptoconfig.cs (3)
96version = ((RuntimeType)typeof(CryptoConfig)).GetRuntimeAssembly().GetVersion().ToString(); 629RuntimeType rtType = retvalType as RuntimeType;
system\security\securityruntime.cs (1)
56return (System.RuntimeType.GetMethodBase(RuntimeMethodHandle.GetDeclaringType(rmh), rmh) as MethodInfo);
system\serializableattribute.cs (2)
24internal static Attribute GetCustomAttribute(RuntimeType type) 28internal static bool IsDefined(RuntimeType type)
system\stubhelpers.cs (1)
1417if (managedType.GetType() != typeof(System.RuntimeType))
system\type.cs (24)
93return RuntimeType.GetType(typeName, throwOnError, ignoreCase, false, ref stackMark); 99return RuntimeType.GetType(typeName, throwOnError, false, false, ref stackMark); 105return RuntimeType.GetType(typeName, false, false, false, ref stackMark); 147return RuntimeType.GetType(typeName, throwIfNotFound, ignoreCase, true /*reflectionOnly*/, ref stackMark); 169return RuntimeType.GetTypeFromProgIDImpl(progID, null, false); 184return RuntimeType.GetTypeFromProgIDImpl(progID, null, throwOnError); 190return RuntimeType.GetTypeFromProgIDImpl(progID, server, false); 196return RuntimeType.GetTypeFromProgIDImpl(progID, server, throwOnError); 209return RuntimeType.GetTypeFromCLSIDImpl(clsid, null, false); 215return RuntimeType.GetTypeFromCLSIDImpl(clsid, null, throwOnError); 221return RuntimeType.GetTypeFromCLSIDImpl(clsid, server, false); 227return RuntimeType.GetTypeFromCLSIDImpl(clsid, server, throwOnError); 350return new RuntimeTypeHandle((RuntimeType)o.GetType()); 357internal static extern RuntimeType GetTypeFromHandleUnsafe(IntPtr handle); 974RuntimeType rt = this as RuntimeType; 1071RuntimeType rt = this as RuntimeType; 1103return IsSubclassOf(RuntimeType.EnumType); 1125RuntimeType rt = this.UnderlyingSystemType as RuntimeType; 1283return IsSubclassOf(RuntimeType.ValueType); 1686RuntimeType toType = this.UnderlyingSystemType as RuntimeType;
system\typedreference.cs (5)
41RuntimeType targetType = (RuntimeType)target.GetType(); 54RuntimeType fieldType = (RuntimeType)field.FieldType; 79private unsafe static extern void InternalMakeTypedReference(void* result, Object target, IntPtr[] flds, RuntimeType lastFieldType);
system\typenameparser.cs (1)
274type = RuntimeType.GetType(OuterMostTypeName, throwOnError, ignoreCase, false, ref stackMark);
system\unityserializationholder.cs (5)
44internal static RuntimeType AddElementTypes(SerializationInfo info, RuntimeType type) 67type = (RuntimeType)type.GetElementType(); 100internal static void GetUnitySerializationInfo(SerializationInfo info, RuntimeType type) 122type = (RuntimeType)type.GetGenericTypeDefinition();
system\valuetype.cs (4)
31RuntimeType thisType = (RuntimeType)this.GetType(); 32RuntimeType thatType = (RuntimeType)obj.GetType();