2 overrides of DateTimeValue
Microsoft.CodeAnalysis (2)
ConstantValueSpecialized.cs (2)
292
public override DateTime
DateTimeValue
417
public override DateTime
DateTimeValue
7 references to DateTimeValue
Microsoft.CodeAnalysis (3)
ConstantValue.cs (2)
536
case ConstantValueTypeDiscriminator.DateTime: return
DateTimeValue
;
832
ConstantValueTypeDiscriminator.DateTime =>
DateTimeValue
.ToString(provider),
ConstantValueSpecialized.cs (1)
307
return base.Equals(other) && _value == other.
DateTimeValue
;
Microsoft.CodeAnalysis.CSharp (2)
Lowering\LocalRewriter\LocalRewriter_Literal.cs (1)
148
arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(constantValue.
DateTimeValue
.Ticks), _compilation.GetSpecialType(SpecialType.System_Int64)));
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
216
SpecialType.System_DateTime => compilation.SynthesizeDateTimeConstantAttribute(defaultValue.
DateTimeValue
),
Microsoft.CodeAnalysis.UnitTests (2)
CorLibTypesTests.cs (2)
99
Assert.Throws<InvalidOperationException>(() => { var c = cv1.
DateTimeValue
; });
104
Assert.Throws<InvalidOperationException>(() => { var c = cv2.
DateTimeValue
; });