50 references to ConstantTypeCode
Microsoft.CodeAnalysis (15)
MetadataReader\PEModule.cs (14)
3702
case
ConstantTypeCode
.Boolean:
3705
case
ConstantTypeCode
.Char:
3708
case
ConstantTypeCode
.SByte:
3711
case
ConstantTypeCode
.Int16:
3714
case
ConstantTypeCode
.Int32:
3717
case
ConstantTypeCode
.Int64:
3720
case
ConstantTypeCode
.Byte:
3723
case
ConstantTypeCode
.UInt16:
3726
case
ConstantTypeCode
.UInt32:
3729
case
ConstantTypeCode
.UInt64:
3732
case
ConstantTypeCode
.Single:
3735
case
ConstantTypeCode
.Double:
3738
case
ConstantTypeCode
.String:
3741
case
ConstantTypeCode
.NullReference:
PEWriter\MetadataWriter.PortablePdb.cs (1)
202
builder.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.
641
public object? ReadConstant(
ConstantTypeCode
typeCode)
652
case
ConstantTypeCode
.Boolean:
655
case
ConstantTypeCode
.Char:
658
case
ConstantTypeCode
.SByte:
661
case
ConstantTypeCode
.Int16:
664
case
ConstantTypeCode
.Int32:
667
case
ConstantTypeCode
.Int64:
670
case
ConstantTypeCode
.Byte:
673
case
ConstantTypeCode
.UInt16:
676
case
ConstantTypeCode
.UInt32:
679
case
ConstantTypeCode
.UInt64:
682
case
ConstantTypeCode
.Single:
685
case
ConstantTypeCode
.Double:
688
case
ConstantTypeCode
.String:
691
case
ConstantTypeCode
.NullReference:
System\Reflection\Metadata\Internal\Tables.cs (2)
712
internal
ConstantTypeCode
GetType(ConstantHandle handle)
715
return (
ConstantTypeCode
)this.Block.PeekByte(rowOffset + _TypeOffset);
System\Reflection\Metadata\TypeSystem\Constant.cs (1)
38
public
ConstantTypeCode
TypeCode
System.Reflection.MetadataLoadContext (15)
System\Reflection\TypeLoading\General\Ecma\EcmaDefaultValueProcessing.cs (15)
22
if (constantValue.Value.IsNil && constantValue.TypeCode !=
ConstantTypeCode
.String)
28
case
ConstantTypeCode
.Boolean:
31
case
ConstantTypeCode
.Char:
34
case
ConstantTypeCode
.SByte:
37
case
ConstantTypeCode
.Int16:
40
case
ConstantTypeCode
.Int32:
43
case
ConstantTypeCode
.Int64:
46
case
ConstantTypeCode
.Byte:
49
case
ConstantTypeCode
.UInt16:
52
case
ConstantTypeCode
.UInt32:
55
case
ConstantTypeCode
.UInt64:
58
case
ConstantTypeCode
.Single:
61
case
ConstantTypeCode
.Double:
64
case
ConstantTypeCode
.String:
67
case
ConstantTypeCode
.NullReference: