2 overrides of DateTimeValue
Microsoft.CodeAnalysis (2)
ConstantValueSpecialized.cs (2)
292public override DateTime DateTimeValue 417public override DateTime DateTimeValue
11 references to DateTimeValue
Microsoft.CodeAnalysis (3)
ConstantValue.cs (2)
532case ConstantValueTypeDiscriminator.DateTime: return DateTimeValue; 828ConstantValueTypeDiscriminator.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)
202SpecialType.System_DateTime => compilation.SynthesizeDateTimeConstantAttribute(defaultValue.DateTimeValue),
Microsoft.CodeAnalysis.UnitTests (1)
CorLibTypesTests.cs (1)
99Assert.Throws<InvalidOperationException>(() => { var c = cv.DateTimeValue; });
Microsoft.CodeAnalysis.VisualBasic (3)
Lowering\LocalRewriter\LocalRewriter_Constant.vb (1)
141Dim dt As Date = nodeValue.DateTimeValue
Semantics\CompileTimeCalculations.vb (1)
158Case ConstantValueTypeDiscriminator.DateTime : Return value.DateTimeValue.Ticks
Symbols\Source\SourceParameterSymbolBase.vb (1)
65defaultValue.DateTimeValue.Ticks))))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\Conversions.vb (1)
294Assert.Equal(New DateTime(), resultValue.DateTimeValue)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Metadata\PE\LoadingFields.vb (1)
148Assert.Equal(New DateTime(634315546432909307), DateTimeField.GetConstantValue(ConstantFieldsInProgress.Empty).DateTimeValue)