50 references to ConstantTypeCode
Microsoft.CodeAnalysis (15)
MetadataReader\PEModule.cs (14)
3702case ConstantTypeCode.Boolean: 3705case ConstantTypeCode.Char: 3708case ConstantTypeCode.SByte: 3711case ConstantTypeCode.Int16: 3714case ConstantTypeCode.Int32: 3717case ConstantTypeCode.Int64: 3720case ConstantTypeCode.Byte: 3723case ConstantTypeCode.UInt16: 3726case ConstantTypeCode.UInt32: 3729case ConstantTypeCode.UInt64: 3732case ConstantTypeCode.Single: 3735case ConstantTypeCode.Double: 3738case ConstantTypeCode.String: 3741case 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: