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