90 references to PrimitiveTypeCode
Microsoft.Cci.Extensions (21)
Extensions\CustomAttributeProvider.cs (21)
7using SRPrimitiveTypeCode = System.Reflection.Metadata.PrimitiveTypeCode; 29public string GetPrimitiveType(SRPrimitiveTypeCode typeCode) 33case SRPrimitiveTypeCode.Boolean: 36case SRPrimitiveTypeCode.Byte: 39case SRPrimitiveTypeCode.Char: 42case SRPrimitiveTypeCode.Double: 45case SRPrimitiveTypeCode.Int16: 48case SRPrimitiveTypeCode.Int32: 51case SRPrimitiveTypeCode.Int64: 54case SRPrimitiveTypeCode.IntPtr: 57case SRPrimitiveTypeCode.Object: 60case SRPrimitiveTypeCode.SByte: 63case SRPrimitiveTypeCode.Single: 66case SRPrimitiveTypeCode.String: 69case SRPrimitiveTypeCode.TypedReference: 72case SRPrimitiveTypeCode.UInt16: 75case SRPrimitiveTypeCode.UInt32: 78case SRPrimitiveTypeCode.UInt64: 81case SRPrimitiveTypeCode.UIntPtr: 84case SRPrimitiveTypeCode.Void: 97public SRPrimitiveTypeCode GetUnderlyingEnumType(string type) => default; // We only use this for compiler attributes that take a primitive type as a parameter.
Microsoft.CodeAnalysis (1)
PEWriter\MetadataWriter.cs (1)
4001encoder.Builder.WriteByte((byte)System.Reflection.Metadata.PrimitiveTypeCode.Void);
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\MetadataReaderUtils.cs (1)
436public string GetPrimitiveType(PrimitiveTypeCode typeCode)
Microsoft.CodeAnalysis.Workspaces (2)
FindSymbols\SymbolTree\SymbolTreeInfo.FirstEntityHandleProvider.cs (1)
59public EntityHandle GetPrimitiveType(PrimitiveTypeCode typeCode) => default;
FindSymbols\SymbolTree\SymbolTreeInfo.Node.cs (1)
119public ParameterTypeInfo GetPrimitiveType(PrimitiveTypeCode typeCode)
Microsoft.DotNet.SignTool (2)
src\Configuration.cs (2)
653public object GetPrimitiveType(PrimitiveTypeCode typeCode) => null; 659public PrimitiveTypeCode GetUnderlyingEnumType(object type) => default;
System.Reflection.Metadata (27)
System\Reflection\Metadata\Decoding\ICustomAttributeTypeProvider.cs (1)
29PrimitiveTypeCode GetUnderlyingEnumType(TType type);
System\Reflection\Metadata\Decoding\ISimpleTypeProvider.cs (1)
11TType GetPrimitiveType(PrimitiveTypeCode typeCode);
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (4)
185info.Type = _provider.GetPrimitiveType((PrimitiveTypeCode)signatureTypeCode); 190info.Type = _provider.GetPrimitiveType(PrimitiveTypeCode.Object); 263info.Type = _provider.GetPrimitiveType((PrimitiveTypeCode)info.TypeCode); 271info.Type = _provider.GetPrimitiveType(PrimitiveTypeCode.Object);
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (20)
989/// <param name="type">Any primitive type code except for <see cref="PrimitiveTypeCode.Void"/>.</param> 991public void PrimitiveType(PrimitiveTypeCode type) 995case PrimitiveTypeCode.Boolean: 996case PrimitiveTypeCode.Byte: 997case PrimitiveTypeCode.SByte: 998case PrimitiveTypeCode.Char: 999case PrimitiveTypeCode.Int16: 1000case PrimitiveTypeCode.UInt16: 1001case PrimitiveTypeCode.Int32: 1002case PrimitiveTypeCode.UInt32: 1003case PrimitiveTypeCode.Int64: 1004case PrimitiveTypeCode.UInt64: 1005case PrimitiveTypeCode.Single: 1006case PrimitiveTypeCode.Double: 1007case PrimitiveTypeCode.TypedReference: 1008case PrimitiveTypeCode.IntPtr: 1009case PrimitiveTypeCode.UIntPtr: 1010case PrimitiveTypeCode.String: 1011case PrimitiveTypeCode.Object: 1015case PrimitiveTypeCode.Void:
System\Reflection\Metadata\Ecma335\SignatureDecoder.cs (1)
83return _provider.GetPrimitiveType((PrimitiveTypeCode)typeCode);
System.Reflection.MetadataLoadContext (36)
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (32)
31public static CoreType ToCoreType(this PrimitiveTypeCode typeCode) 35case PrimitiveTypeCode.Boolean: return CoreType.Boolean; 36case PrimitiveTypeCode.Byte: return CoreType.Byte; 37case PrimitiveTypeCode.Char: return CoreType.Char; 38case PrimitiveTypeCode.Double: return CoreType.Double; 39case PrimitiveTypeCode.Int16: return CoreType.Int16; 40case PrimitiveTypeCode.Int32: return CoreType.Int32; 41case PrimitiveTypeCode.Int64: return CoreType.Int64; 42case PrimitiveTypeCode.IntPtr: return CoreType.IntPtr; 43case PrimitiveTypeCode.Object: return CoreType.Object; 44case PrimitiveTypeCode.SByte: return CoreType.SByte; 45case PrimitiveTypeCode.Single: return CoreType.Single; 46case PrimitiveTypeCode.String: return CoreType.String; 47case PrimitiveTypeCode.TypedReference: return CoreType.TypedReference; 48case PrimitiveTypeCode.UInt16: return CoreType.UInt16; 49case PrimitiveTypeCode.UInt32: return CoreType.UInt32; 50case PrimitiveTypeCode.UInt64: return CoreType.UInt64; 51case PrimitiveTypeCode.UIntPtr: return CoreType.UIntPtr; 52case PrimitiveTypeCode.Void: return CoreType.Void; 59public static PrimitiveTypeCode GetEnumUnderlyingPrimitiveTypeCode(this Type enumType, MetadataLoadContext loader) 64if (type == coreTypes[CoreType.Boolean]) return PrimitiveTypeCode.Boolean; 65if (type == coreTypes[CoreType.Char]) return PrimitiveTypeCode.Char; 66if (type == coreTypes[CoreType.Byte]) return PrimitiveTypeCode.Byte; 67if (type == coreTypes[CoreType.Int16]) return PrimitiveTypeCode.Int16; 68if (type == coreTypes[CoreType.Int32]) return PrimitiveTypeCode.Int32; 69if (type == coreTypes[CoreType.Int64]) return PrimitiveTypeCode.Int64; 70if (type == coreTypes[CoreType.IntPtr]) return PrimitiveTypeCode.IntPtr; 71if (type == coreTypes[CoreType.SByte]) return PrimitiveTypeCode.SByte; 72if (type == coreTypes[CoreType.UInt16]) return PrimitiveTypeCode.UInt16; 73if (type == coreTypes[CoreType.UInt32]) return PrimitiveTypeCode.UInt32; 74if (type == coreTypes[CoreType.UInt64]) return PrimitiveTypeCode.UInt64; 75if (type == coreTypes[CoreType.UIntPtr]) return PrimitiveTypeCode.UIntPtr;
System\Reflection\TypeLoading\General\Ecma\EcmaSignatureTypeProviderForToString.cs (1)
77public string GetPrimitiveType(PrimitiveTypeCode typeCode)
System\Reflection\TypeLoading\General\Ecma\EcmaWrappedTypeProvider.cs (1)
60public RoType GetPrimitiveType(PrimitiveTypeCode typeCode) => _typeProvider.GetPrimitiveType(typeCode);
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.TypeProvider.cs (2)
58public RoType GetPrimitiveType(PrimitiveTypeCode typeCode) => Loader.GetCoreType(typeCode.ToCoreType()); 65public PrimitiveTypeCode GetUnderlyingEnumType(RoType type) => type.GetEnumUnderlyingPrimitiveTypeCode(Loader);