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