34 references to TypeDefTreatment
System.Reflection.Metadata (34)
System\Reflection\Metadata\MetadataReader.WinMD.cs (19)
29
public readonly
TypeDefTreatment
Treatment;
38
TypeDefTreatment
treatment =
TypeDefTreatment
.RedirectedToClrType,
52
private
TypeDefTreatment
GetWellKnownTypeDefinitionTreatment(TypeDefinitionHandle typeDef)
61
return
TypeDefTreatment
.None;
73
return s_projectionInfos[index].Treatment |
TypeDefTreatment
.MarkInternalFlag;
76
return
TypeDefTreatment
.None;
137
keys[k++] = "AttributeUsageAttribute"; values[v++] = new ProjectionInfo("Windows.Foundation.Metadata", StringHandle.VirtualIndex.System, StringHandle.VirtualIndex.AttributeUsageAttribute, systemRuntime, treatment:
TypeDefTreatment
.RedirectedToClrAttribute);
225
TypeDefTreatment
treatment;
235
if (treatment !=
TypeDefTreatment
.None)
243
treatment =
TypeDefTreatment
.NormalAttribute;
247
treatment =
TypeDefTreatment
.NormalNonAttribute;
270
treatment =
TypeDefTreatment
.PrefixWinRTName;
274
treatment =
TypeDefTreatment
.None;
279
if ((treatment ==
TypeDefTreatment
.PrefixWinRTName || treatment ==
TypeDefTreatment
.NormalNonAttribute))
284
treatment |=
TypeDefTreatment
.MarkAbstractFlag;
292
treatment =
TypeDefTreatment
.UnmangleWinRTName;
296
treatment =
TypeDefTreatment
.None;
System\Reflection\Metadata\TypeSystem\TypeDefinition.cs (15)
31
private
TypeDefTreatment
Treatment
33
get { return (
TypeDefTreatment
)(_treatmentAndRowId >> TokenTypeIds.RowIdBitCount); }
223
var
treatment = Treatment;
225
switch (treatment &
TypeDefTreatment
.KindMask)
227
case
TypeDefTreatment
.NormalNonAttribute:
231
case
TypeDefTreatment
.NormalAttribute:
235
case
TypeDefTreatment
.UnmangleWinRTName:
239
case
TypeDefTreatment
.PrefixWinRTName:
243
case
TypeDefTreatment
.RedirectedToClrType:
247
case
TypeDefTreatment
.RedirectedToClrAttribute:
252
if ((treatment &
TypeDefTreatment
.MarkAbstractFlag) != 0)
257
if ((treatment &
TypeDefTreatment
.MarkInternalFlag) != 0)
269
return (Treatment &
TypeDefTreatment
.KindMask) switch
271
TypeDefTreatment
.UnmangleWinRTName => name.SuffixRaw(MetadataReader.ClrPrefix.Length),
272
TypeDefTreatment
.PrefixWinRTName => name.WithWinRTPrefix(),