164 references to CorElementType
mscorlib (164)
system\enum.cs (29)
697
case
CorElementType
.I1:
699
case
CorElementType
.U1:
701
case
CorElementType
.Boolean:
703
case
CorElementType
.I2:
705
case
CorElementType
.U2:
707
case
CorElementType
.Char:
709
case
CorElementType
.I4:
711
case
CorElementType
.U4:
713
case
CorElementType
.R4:
715
case
CorElementType
.I8:
717
case
CorElementType
.U8:
719
case
CorElementType
.R8:
721
case
CorElementType
.I:
723
case
CorElementType
.U:
740
private extern
CorElementType
InternalGetCorElementType();
760
case
CorElementType
.I1:
762
case
CorElementType
.U1:
764
case
CorElementType
.Boolean:
766
case
CorElementType
.I2:
768
case
CorElementType
.U2:
770
case
CorElementType
.Char:
772
case
CorElementType
.I4:
774
case
CorElementType
.U4:
776
case
CorElementType
.R4:
778
case
CorElementType
.I8:
780
case
CorElementType
.U8:
782
case
CorElementType
.R8:
784
case
CorElementType
.I:
786
case
CorElementType
.U:
system\reflection\customattribute.cs (14)
989
Boolean =
CorElementType
.Boolean,
990
Char =
CorElementType
.Char,
991
SByte =
CorElementType
.I1,
992
Byte =
CorElementType
.U1,
993
Int16 =
CorElementType
.I2,
994
UInt16 =
CorElementType
.U2,
995
Int32 =
CorElementType
.I4,
996
UInt32 =
CorElementType
.U4,
997
Int64 =
CorElementType
.I8,
998
UInt64 =
CorElementType
.U8,
999
Float =
CorElementType
.R4,
1000
Double =
CorElementType
.R8,
1001
String =
CorElementType
.String,
1002
Array =
CorElementType
.SzArray,
system\reflection\emit\signaturehelper.cs (33)
299
AddElementType(
CorElementType
.Pinned);
328
AddElementType(
CorElementType
.CModOpt);
351
AddElementType(
CorElementType
.CModReqd);
370
AddElementType(
CorElementType
.MVar);
372
AddElementType(
CorElementType
.Var);
378
AddElementType(
CorElementType
.GenericInst);
405
InternalAddTypeToken(tkType,
CorElementType
.ValueType);
409
InternalAddTypeToken(tkType,
CorElementType
.Class);
428
InternalAddTypeToken(tkType,
CorElementType
.ValueType);
432
InternalAddTypeToken(tkType,
CorElementType
.Class);
437
AddElementType(
CorElementType
.ByRef);
443
AddElementType(
CorElementType
.Ptr);
450
AddElementType(
CorElementType
.SzArray);
456
AddElementType(
CorElementType
.Array);
471
CorElementType
type =
CorElementType
.Max;
478
if (type ==
CorElementType
.Class)
481
type =
CorElementType
.Object;
483
type =
CorElementType
.String;
497
InternalAddTypeToken(m_module.GetTypeToken(clsArgument),
CorElementType
.ValueType);
501
InternalAddTypeToken(m_module.GetTypeToken(clsArgument),
CorElementType
.Class);
568
private void AddElementType(
CorElementType
cvt)
611
private void InternalAddTypeToken(TypeToken clsToken,
CorElementType
CorType)
623
AddElementType(
CorElementType
.Internal);
737
internal static bool IsSimpleType(
CorElementType
type)
739
if (type <=
CorElementType
.String)
742
if (type ==
CorElementType
.TypedByRef || type ==
CorElementType
.I || type ==
CorElementType
.U || type ==
CorElementType
.Object)
814
temp[newSigSize - 1] = (byte)
CorElementType
.End;
876
AddElementType(
CorElementType
.Sentinel);
930
AddElementType(
CorElementType
.End);
system\reflection\emit\typebuilder.cs (16)
476
CorElementType
corType = RuntimeTypeHandle.GetCorElementType((RuntimeType)type);
480
case
CorElementType
.I1:
481
case
CorElementType
.U1:
482
case
CorElementType
.Boolean:
483
case
CorElementType
.I2:
484
case
CorElementType
.U2:
485
case
CorElementType
.Char:
486
case
CorElementType
.I4:
487
case
CorElementType
.U4:
488
case
CorElementType
.R4:
489
case
CorElementType
.I8:
490
case
CorElementType
.U8:
491
case
CorElementType
.R8:
500
SetConstantValue(module.GetNativeHandle(), tk, (int)
CorElementType
.String, pString);
506
SetConstantValue(module.GetNativeHandle(), tk, (int)
CorElementType
.I8, &ticks);
524
SetConstantValue(module.GetNativeHandle(), tk, (int)
CorElementType
.Class, null);
system\reflection\mdconstant.cs (29)
18
CorElementType
corElementType = 0;
35
case
CorElementType
.Void:
38
case
CorElementType
.Char:
42
case
CorElementType
.I1:
46
case
CorElementType
.U1:
50
case
CorElementType
.I2:
54
case
CorElementType
.U2:
58
case
CorElementType
.I4:
62
case
CorElementType
.U4:
66
case
CorElementType
.I8:
70
case
CorElementType
.U8:
89
case
CorElementType
.Void:
92
case
CorElementType
.I8:
96
case
CorElementType
.U8:
113
case
CorElementType
.Void:
116
case
CorElementType
.Char:
119
case
CorElementType
.I1:
122
case
CorElementType
.U1:
125
case
CorElementType
.I2:
128
case
CorElementType
.U2:
131
case
CorElementType
.I4:
134
case
CorElementType
.U4:
137
case
CorElementType
.I8:
140
case
CorElementType
.U8:
143
case
CorElementType
.Boolean :
149
case
CorElementType
.R4 :
152
case
CorElementType
.R8:
155
case
CorElementType
.String:
160
case
CorElementType
.Class:
system\reflection\mdimport.cs (2)
409
public String GetDefaultValue(int mdToken, out long value, out int length, out
CorElementType
corElementType)
414
corElementType = (
CorElementType
)_corElementType;
system\rttype.cs (15)
3596
CorElementType
corElementType = RuntimeTypeHandle.GetCorElementType(this);
3599
case
CorElementType
.Boolean:
3601
case
CorElementType
.Char:
3603
case
CorElementType
.I1:
3605
case
CorElementType
.U1:
3607
case
CorElementType
.I2:
3609
case
CorElementType
.U2:
3611
case
CorElementType
.I4:
3613
case
CorElementType
.U4:
3615
case
CorElementType
.I8:
3617
case
CorElementType
.U8:
3619
case
CorElementType
.R4:
3621
case
CorElementType
.R8:
3623
case
CorElementType
.String:
3625
case
CorElementType
.ValueType:
system\runtimehandles.cs (26)
72
if ((
CorElementType
)Marshal.ReadInt32((IntPtr)arModifiers, i * sizeof(int)) ==
CorElementType
.Ptr)
75
else if ((
CorElementType
)Marshal.ReadInt32((IntPtr)arModifiers, i * sizeof(int)) ==
CorElementType
.ByRef)
78
else if ((
CorElementType
)Marshal.ReadInt32((IntPtr)arModifiers, i * sizeof(int)) ==
CorElementType
.SzArray)
159
CorElementType
corElemType = GetCorElementType(type);
160
return (corElemType >=
CorElementType
.Boolean && corElemType <=
CorElementType
.R8) ||
161
corElemType ==
CorElementType
.I ||
162
corElemType ==
CorElementType
.U;
168
CorElementType
corElemType = GetCorElementType(type);
169
return (corElemType ==
CorElementType
.ByRef);
175
CorElementType
corElemType = GetCorElementType(type);
176
return (corElemType ==
CorElementType
.Ptr);
182
CorElementType
corElemType = GetCorElementType(type);
183
return (corElemType ==
CorElementType
.Array || corElemType ==
CorElementType
.SzArray);
189
CorElementType
corElemType = GetCorElementType(type);
190
return (corElemType ==
CorElementType
.SzArray);
196
CorElementType
corElemType = GetCorElementType(type);
198
return ((corElemType ==
CorElementType
.Array || corElemType ==
CorElementType
.SzArray) // IsArray
199
|| (corElemType ==
CorElementType
.Ptr) // IsPointer
200
|| (corElemType ==
CorElementType
.ByRef)); // IsByRef
267
internal extern static
CorElementType
GetCorElementType(RuntimeType type);