3 overrides of ByteValue
Microsoft.CodeAnalysis (3)
ConstantValueSpecialized.cs (3)
361
public override byte
ByteValue
539
public override byte
ByteValue
702
public override byte
ByteValue
14 references to ByteValue
Microsoft.CodeAnalysis (8)
CodeGen\ILBuilderEmit.cs (1)
579
EmitByteConstant(value.
ByteValue
);
CodeGen\SwitchIntegralJumpTableEmitter.cs (1)
485
case ConstantValueTypeDiscriminator.Byte: return value.
ByteValue
;
ConstantValue.cs (4)
64
public virtual ushort UInt16Value { get { return
ByteValue
; } }
522
case ConstantValueTypeDiscriminator.Byte: return Boxes.Box(
ByteValue
);
769
writer.WriteByte(this.
ByteValue
);
820
ConstantValueTypeDiscriminator.Byte =>
ByteValue
.ToString(provider),
ConstantValueSpecialized.cs (1)
725
return base.Equals(other) && _value == other.
ByteValue
;
EnumConstantHelper.cs (1)
42
ulong previous = constantValue.
ByteValue
;
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Conversions.cs (2)
3314
byte byteValue = value.
ByteValue
;
3671
case ConstantValueTypeDiscriminator.Byte: return (decimal)value.
ByteValue
;
Binder\Semantics\Conversions\ConversionsBase.cs (1)
2073
return value.
ByteValue
== 0;
Utilities\ValueSetFactory.ByteTC.cs (1)
55
byte INumericTC<byte>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (byte)0 : constantValue.
ByteValue
;
Microsoft.CodeAnalysis.UnitTests (2)
CorLibTypesTests.cs (2)
112
Assert.Throws<InvalidOperationException>(() => { var c = cvNull.
ByteValue
; });
121
Assert.Equal(1, cv1.
ByteValue
);