2 overrides of UnderlyingType
ILCompiler.TypeSystem (2)
parent\parent\Common\TypeSystem\Common\InstantiatedType.cs (1)
310public override TypeDesc UnderlyingType
parent\parent\Common\TypeSystem\Ecma\EcmaType.cs (1)
447public override TypeDesc UnderlyingType
65 references to UnderlyingType
ILCompiler.Compiler (24)
Compiler\BodySubstitutionParser.cs (2)
167if (type.IsEnum && type.UnderlyingType.Category == TypeFlags.Int32) 187switch (type.UnderlyingType.Category)
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (2)
269if (type.UnderlyingType.IsPrimitive || type.IsString || value == null) 275if (elementType.UnderlyingType.IsPrimitive || elementType.IsString)
Compiler\SubstitutedILProvider.cs (1)
681TypeFlags returnType = method.Signature.ReturnType.UnderlyingType.Category;
Compiler\TypePreinit.cs (4)
2063switch (locationType.UnderlyingType.Category) 2112locationType = locationType.UnderlyingType; 3568if (Type.UnderlyingType != type.UnderlyingType)
Compiler\UserDefinedTypeDescriptor.cs (1)
415ElementType = GetPrimitiveTypeIndex(defType.UnderlyingType),
IL\ILImporter.Scanner.cs (1)
751constrained = constrained.UnderlyingType;
IL\RvaIntrinsicPatternAnalyzer.cs (1)
282elementType = elementType.UnderlyingType;
parent\parent\Common\Internal\Runtime\EETypeBuilderHelpers.cs (1)
16type = type.UnderlyingType;
parent\parent\Common\JitInterface\WasmLowering.cs (2)
342switch (abiType.UnderlyingType.Category) 377throw new NotSupportedException($"Unknown wasm mapping for type: {type.UnderlyingType.Category}");
parent\parent\Common\TypeSystem\IL\NativeAotILProvider.cs (1)
154TypeDesc underlyingType = elementType.UnderlyingType;
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
285TypeFlags category = fieldType.UnderlyingType.Category;
parent\parent\Common\TypeSystem\IL\Stubs\DynamicInvokeMethodThunk.cs (1)
67return type.UnderlyingType;
parent\parent\Common\TypeSystem\IL\Stubs\GetFieldHelperMethodOverride.cs (1)
140boxableFieldType = fieldTypeForOptimizationChecks.UnderlyingType;
parent\parent\Common\TypeSystem\IL\Stubs\InterlockedIntrinsics.cs (1)
44else if ((tType.IsPrimitive || tType.IsEnum) && (tType.UnderlyingType.Category is not (TypeFlags.Single or TypeFlags.Double)))
parent\parent\Common\TypeSystem\IL\Stubs\RuntimeHelpersIntrinsics.cs (1)
40switch (elementType.UnderlyingType.Category)
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.Aot.cs (1)
20typeDesc = typeDesc.UnderlyingType;
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.cs (2)
56return type.UnderlyingType; 914TypeDesc underlyingType = type.UnderlyingType;
ILCompiler.MetadataTransform (2)
ILCompiler\Metadata\Transform.CustomAttribute.cs (2)
89switch (type.UnderlyingType.Category) 93case <= Cts.TypeFlags.UInt64: return (Ecma.SerializationTypeCode)type.UnderlyingType.Category;
ILCompiler.ReadyToRun (18)
Compiler\DependencyAnalysis\ReadyToRun\TypeHandle.cs (2)
104Internal.TypeSystem.TypeFlags category = _type.UnderlyingType.Category; 164switch (typeOfEmbeddedField.UnderlyingType.Category)
Compiler\ReadyToRunMetadataFieldLayoutAlgorithm.cs (2)
127size = fieldType.UnderlyingType.GetElementSize().AsInt; 228size = fieldDesc.FieldType.UnderlyingType.GetElementSize().AsInt;
JitInterface\CorInfoImpl.ReadyToRun.cs (3)
1708!field.FieldType.UnderlyingType.IsPrimitive) 2012MethodDesc methodOnUnderlyingType = constrainedType.UnderlyingType.FindVirtualFunctionTargetMethodOnObjectType(originalMethod); 2015constrainedType = constrainedType.UnderlyingType;
parent\parent\Common\JitInterface\CorInfoImpl.cs (2)
995type = type.UnderlyingType; 3280*underlyingType = ObjectToHandle(type.UnderlyingType);
parent\parent\Common\JitInterface\WasmLowering.cs (2)
342switch (abiType.UnderlyingType.Category) 377throw new NotSupportedException($"Unknown wasm mapping for type: {type.UnderlyingType.Category}");
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
285TypeFlags category = fieldType.UnderlyingType.Category;
parent\parent\Common\TypeSystem\IL\Stubs\InterlockedIntrinsics.cs (1)
44else if ((tType.IsPrimitive || tType.IsEnum) && (tType.UnderlyingType.Category is not (TypeFlags.Single or TypeFlags.Double)))
parent\parent\Common\TypeSystem\IL\Stubs\RuntimeHelpersIntrinsics.cs (1)
40switch (elementType.UnderlyingType.Category)
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.cs (2)
56return type.UnderlyingType; 914TypeDesc underlyingType = type.UnderlyingType;
PortableCallHelpers\PInvokeTableGenerator.cs (2)
410return TypeToNameType(type.UnderlyingType); 436return MapType(type.UnderlyingType);
ILCompiler.RyuJit (3)
JitInterface\CorInfoImpl.RyuJit.cs (1)
1253constrainedType = constrainedType.UnderlyingType;
parent\parent\Common\JitInterface\CorInfoImpl.cs (2)
995type = type.UnderlyingType; 3280*underlyingType = ObjectToHandle(type.UnderlyingType);
ILCompiler.TypeSystem (18)
parent\parent\Common\TypeSystem\Common\CastingHelper.cs (5)
33switch (elementType.UnderlyingType.Category) 341TypeDesc fromParamUnderlyingType = curTypesParm.UnderlyingType; 356TypeDesc toParamUnderlyingType = paramType.UnderlyingType; 593TypeDesc fromUnderlyingType = thisType.UnderlyingType; 609TypeDesc toUnderlyingType = otherType.UnderlyingType;
parent\parent\Common\TypeSystem\Common\InstantiatedType.cs (1)
317return _typeDef.UnderlyingType;
parent\parent\Common\TypeSystem\Common\MetadataFieldLayoutAlgorithm.cs (5)
344var fieldSizeAndAlignment = ComputeFieldSizeAndAlignment(fieldType.UnderlyingType, hasLayout: true, packingSize, out ComputedFieldData fieldData); 459var fieldSizeAndAlignment = ComputeFieldSizeAndAlignment(field.FieldType.UnderlyingType, hasLayout: true, packingSize, out ComputedFieldData fieldData); 535var fieldSizeAndAlignment = ComputeFieldSizeAndAlignment(field.FieldType.UnderlyingType, hasLayout: true, packingSize, out ComputedFieldData fieldData); 624var fieldSizeAndAlignment = ComputeFieldSizeAndAlignment(field.FieldType.UnderlyingType, hasLayout: true, packingSize, out ComputedFieldData fieldData); 1290MetadataType metadataType = (MetadataType)type.UnderlyingType;
parent\parent\Common\TypeSystem\Ecma\CustomAttributeTypeProvider.cs (1)
64switch (type.UnderlyingType.Category)
parent\parent\Common\TypeSystem\Ecma\EcmaType.cs (1)
461return base.UnderlyingType; // Use the base implementation to get consistent error behavior
parent\parent\Common\TypeSystem\IL\Stubs\ILEmitter.cs (4)
235switch (type.UnderlyingType.Category) 292switch (type.UnderlyingType.Category) 342switch (type.UnderlyingType.Category) 392switch (type.UnderlyingType.Category)
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (1)
178|| decodedValue.FixedArguments[0].Type.UnderlyingType != context.GetWellKnownType(WellKnownType.Int32))