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