50 references to ConstantTypeCode
Microsoft.CodeAnalysis (15)
MetadataReader\PEModule.cs (14)
3697case ConstantTypeCode.Boolean: 3700case ConstantTypeCode.Char: 3703case ConstantTypeCode.SByte: 3706case ConstantTypeCode.Int16: 3709case ConstantTypeCode.Int32: 3712case ConstantTypeCode.Int64: 3715case ConstantTypeCode.Byte: 3718case ConstantTypeCode.UInt16: 3721case ConstantTypeCode.UInt32: 3724case ConstantTypeCode.UInt64: 3727case ConstantTypeCode.Single: 3730case ConstantTypeCode.Double: 3733case ConstantTypeCode.String: 3736case ConstantTypeCode.NullReference:
PEWriter\MetadataWriter.PortablePdb.cs (1)
202builder.WriteByte((byte)ConstantTypeCode.String);
System.Reflection.Metadata (20)
System\Reflection\Metadata\BlobReader.cs (17)
636/// <exception cref="ArgumentOutOfRangeException"><paramref name="typeCode"/> is not a valid <see cref="ConstantTypeCode"/>.</exception> 639/// Constants of type <see cref="ConstantTypeCode.String"/> are encoded as UTF16 strings, use <see cref="ReadUTF16(int)"/> to read them. 641public object? ReadConstant(ConstantTypeCode typeCode) 652case ConstantTypeCode.Boolean: 655case ConstantTypeCode.Char: 658case ConstantTypeCode.SByte: 661case ConstantTypeCode.Int16: 664case ConstantTypeCode.Int32: 667case ConstantTypeCode.Int64: 670case ConstantTypeCode.Byte: 673case ConstantTypeCode.UInt16: 676case ConstantTypeCode.UInt32: 679case ConstantTypeCode.UInt64: 682case ConstantTypeCode.Single: 685case ConstantTypeCode.Double: 688case ConstantTypeCode.String: 691case ConstantTypeCode.NullReference:
System\Reflection\Metadata\Internal\Tables.cs (2)
712internal ConstantTypeCode GetType(ConstantHandle handle) 715return (ConstantTypeCode)this.Block.PeekByte(rowOffset + _TypeOffset);
System\Reflection\Metadata\TypeSystem\Constant.cs (1)
38public ConstantTypeCode TypeCode
System.Reflection.MetadataLoadContext (15)
System\Reflection\TypeLoading\General\Ecma\EcmaDefaultValueProcessing.cs (15)
22if (constantValue.Value.IsNil && constantValue.TypeCode != ConstantTypeCode.String) 28case ConstantTypeCode.Boolean: 31case ConstantTypeCode.Char: 34case ConstantTypeCode.SByte: 37case ConstantTypeCode.Int16: 40case ConstantTypeCode.Int32: 43case ConstantTypeCode.Int64: 46case ConstantTypeCode.Byte: 49case ConstantTypeCode.UInt16: 52case ConstantTypeCode.UInt32: 55case ConstantTypeCode.UInt64: 58case ConstantTypeCode.Single: 61case ConstantTypeCode.Double: 64case ConstantTypeCode.String: 67case ConstantTypeCode.NullReference: