148 references to System_DateTime
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
288case SpecialType.System_DateTime:
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\EndpointParameter.cs (1)
357else if (parameterType.SpecialType == SpecialType.System_DateTime)
Microsoft.CodeAnalysis (33)
ConstantValue.cs (2)
455case SpecialType.System_DateTime: return ConstantValueTypeDiscriminator.DateTime; 507case ConstantValueTypeDiscriminator.DateTime: return SpecialType.System_DateTime;
ConstantValueSpecialized.cs (1)
289get { return SpecialType.System_DateTime; }
MetadataReader\MetadataDecoder.cs (1)
1014else if (type.SpecialType == SpecialType.System_DateTime)
SpecialMembers.cs (24)
742(byte)SpecialType.System_DateTime, // DeclaringTypeId 744(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, // Field Signature 748(byte)SpecialType.System_DateTime, // DeclaringTypeId 756(byte)SpecialType.System_DateTime, // DeclaringTypeId 760(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 761(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 765(byte)SpecialType.System_DateTime, // DeclaringTypeId 769(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 770(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 774(byte)SpecialType.System_DateTime, // DeclaringTypeId 778(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 779(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 783(byte)SpecialType.System_DateTime, // DeclaringTypeId 787(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 788(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 792(byte)SpecialType.System_DateTime, // DeclaringTypeId 796(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 797(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 801(byte)SpecialType.System_DateTime, // DeclaringTypeId 805(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 806(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 810(byte)SpecialType.System_DateTime, // DeclaringTypeId 814(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 815(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime,
SpecialTypeExtensions.cs (2)
84case SpecialType.System_DateTime: 343return SpecialType.System_DateTime;
WellKnownMembers.cs (3)
1442(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, // Return Type 1539(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 1658(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, // Return Type
Microsoft.CodeAnalysis.CodeStyle (5)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (2)
84case SpecialType.System_DateTime: 343return SpecialType.System_DateTime;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
675case SpecialType.System_DateTime:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
30PredefinedType.DateTime => SpecialType.System_DateTime,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
30SpecialType.System_DateTime => PredefinedType.DateTime,
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
430case SpecialType.System_DateTime:
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Invocation.cs (1)
1683if (!conversion.IsValid && defaultConstantValue is { SpecialType: SpecialType.System_Decimal or SpecialType.System_DateTime })
Binder\Semantics\Conversions\Conversions.cs (1)
81SpecialType.System_DateTime => WellKnownMember.System_Runtime_CompilerServices_DateTimeConstantAttribute__ctor,
Emitter\Model\ParameterSymbolAdapter.cs (1)
245this.ExplicitDefaultConstantValue.SpecialType != SpecialType.System_DateTime;
FlowAnalysis\AbstractFlowPass.cs (1)
1473case SpecialType.System_DateTime:
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
822rewrittenOperand.Type.SpecialType != SpecialType.System_DateTime)
Lowering\LocalRewriter\LocalRewriter_Literal.cs (2)
38Debug.Assert(type is { SpecialType: SpecialType.System_DateTime }); 152Debug.Assert(ctor.ContainingType.SpecialType == SpecialType.System_DateTime);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1930case SpecialType.System_DateTime:
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
216SpecialType.System_DateTime => compilation.SynthesizeDateTimeConstantAttribute(defaultValue.DateTimeValue),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Retargeting\RetargetCustomModifiers.cs (1)
214Assert.Equal(SpecialType.System_DateTime, p1Type.PointedAtType.SpecialType);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\PdbHelpers.cs (1)
106(SpecialType.System_DateTime, double doubleVal) => ConstantValue.Create(DateTimeUtilities.ToDateTime(doubleVal)),
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
103case SpecialType.System_DateTime:
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
347return SpecialType.System_DateTime;
Microsoft.CodeAnalysis.VisualBasic (53)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
348SpecialType.System_DateTime,
Binding\Binder_Conversions.vb (1)
282Case SyntaxKind.CDateKeyword : targetType = SpecialType.System_DateTime
Binding\Binder_Initializers.vb (1)
159If fieldSymbol.Type.SpecialType = SpecialType.System_DateTime Then
Binding\Binder_Lookup.vb (1)
453Return SpecialType.System_DateTime
Binding\Binder_Symbols.vb (1)
772type = SpecialType.System_DateTime
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
358type = SpecialType.System_DateTime
CodeGen\EmitExpression.vb (1)
648If field.IsConst AndAlso specType <> SpecialType.System_Decimal AndAlso specType <> SpecialType.System_DateTime Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (1)
265ElseIf operandUnderlyingSpecialType = SpecialType.System_DateTime Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (2)
596Case SpecialType.System_DateTime : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToStringDateTime 601Case SpecialType.System_DateTime
Lowering\LocalRewriter\LocalRewriter_Constant.vb (1)
147currentMethod.ContainingType.SpecialType <> SpecialType.System_DateTime) Then
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (3)
851Case SpecialType.System_DateTime : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToDateObject 944Case SpecialType.System_DateTime : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToStringDateTime 1016Case SpecialType.System_DateTime : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToDateString
Preprocessor\CConst.vb (2)
47Case SpecialType.System_DateTime 137Return New CConst(Of Date)(value, SpecialType.System_DateTime)
Preprocessor\ExpressionEvaluator.vb (18)
36Const _DateTime = CType(SpecialType.System_DateTime, Byte) 97Case SpecialType.System_DateTime 393Return SpecialType.System_DateTime 490specialType = SpecialType.System_DateTime 622Case SpecialType.System_DateTime 623Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, SpecialType.System_DateTime.GetDisplayName(), SpecialType.System_Boolean.GetDisplayName()) 670Case SpecialType.System_DateTime 671Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, SpecialType.System_DateTime.GetDisplayName(), toSpecialType.GetDisplayName()) 714Case SpecialType.System_DateTime 743Case SpecialType.System_DateTime 769If fromSpecialType = SpecialType.System_DateTime Then 774Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_DateTime.GetDisplayName()) 779Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_DateTime.GetDisplayName()) 782Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_DateTime.GetDisplayName()) 795Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_DateTime.GetDisplayName()) 821Case SpecialType.System_DateTime 858specialType = SpecialType.System_Char OrElse specialType = SpecialType.System_DateTime Then 1112If left.SpecialType.IsIntegralType() OrElse left.SpecialType = SpecialType.System_Char OrElse left.SpecialType = SpecialType.System_DateTime Then
Preprocessor\OperatorResolution.vb (2)
56Case SpecialType.System_DateTime 95Const t_date As Byte = CType(SpecialType.System_DateTime, Byte)
Preprocessor\TypeHelpers.vb (1)
33If specialType = SpecialType.System_DateTime Then
Semantics\Operators.vb (1)
1737Const tDat As SByte = SpecialType.System_DateTime
Symbols\Metadata\PE\PEFieldSymbol.vb (3)
165If Me.Type.SpecialType = SpecialType.System_DateTime Then 243ElseIf selfOrUnderlyingSpecialType = SpecialType.System_DateTime Then 277If Me.Type.SpecialType = SpecialType.System_DateTime Then
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
1157SpecialType.System_DateTime,
Symbols\Source\SourceComplexParameterSymbol.vb (1)
378Case SpecialType.System_DateTime
Symbols\Source\SourceFieldSymbol.vb (1)
682If Me.Type.SpecialType = SpecialType.System_DateTime Then
Symbols\Source\SourceParameterSymbolBase.vb (1)
60Case SpecialType.System_DateTime
Symbols\SpecialTypeExtensions.vb (6)
40SpecialType.System_DateTime, 173Case SpecialType.System_DateTime 220Case SpecialType.System_DateTime 267Case SpecialType.System_DateTime 305Case SpecialType.System_DateTime 367Case SpecialType.System_DateTime
Symbols\TypeSymbolExtensions.vb (2)
361Return this.SpecialType = SpecialType.System_DateTime 454Case SpecialType.System_DateTime
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (2)
397ElseIf castType.SpecialType = SpecialType.System_DateTime Then 398Return Not outerType.SpecialType = SpecialType.System_DateTime
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (3)
27Case specialType.System_DateTime 69specialType = specialType.System_DateTime 116SpecialType.System_DateTime,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
109SpecialType.System_DateTime,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
126Case SpecialType.System_DateTime
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
89SpecialType.System_DateTime,
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Hosting\ObjectFormatter\VisualBasicTypeNameFormatter.vb (1)
48Case SpecialType.System_DateTime
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (9)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (1)
2778Assert.Equal(compilation.GetSpecialType(System_DateTime), local.Type)
Semantics\BinaryOperators.vb (2)
1097(op = BinaryOperatorKind.Subtract AndAlso leftSpecial = SpecialType.System_DateTime AndAlso rightSpecial = SpecialType.System_DateTime)) Then
Semantics\Conversions.vb (5)
244Dim dateType = c1.GetSpecialType(System_DateTime) 1096Dim dateType = c1.GetSpecialType(System_DateTime) 2059c1.GetSpecialType(System_DateTime), 2074nullable.Construct(c1.GetSpecialType(System_DateTime)) 2199Private Const s_date = System_DateTime
Semantics\GetExtendedSemanticInfoTests.vb (1)
2948Assert.Equal(System_DateTime, semanticInfo.Type.SpecialType)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\ConstantExpressionEvaluatorTests.vb (1)
25Assert.Equal(ConstantValueTypeDiscriminator.DateTime, SpecialType.System_DateTime.ToConstantValueDiscriminator())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
423Case SpecialType.System_DateTime
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
53Case SpecialType.System_DateTime
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (2)
397ElseIf castType.SpecialType = SpecialType.System_DateTime Then 398Return Not outerType.SpecialType = SpecialType.System_DateTime
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (3)
27Case specialType.System_DateTime 69specialType = specialType.System_DateTime 116SpecialType.System_DateTime,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
109SpecialType.System_DateTime,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
126Case SpecialType.System_DateTime
Microsoft.CodeAnalysis.Workspaces (6)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (2)
84case SpecialType.System_DateTime: 343return SpecialType.System_DateTime;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
675case SpecialType.System_DateTime:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
30PredefinedType.DateTime => SpecialType.System_DateTime,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
30SpecialType.System_DateTime => PredefinedType.DateTime,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
430case SpecialType.System_DateTime:
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SymbolKeyTests.cs (3)
803var a_string_b_int_m_datetime = ((IMethodSymbol)a_string_b_int_m).Construct(compilation.GetSpecialType(SpecialType.System_DateTime)); 808var a_b_int_m_datetime = ((IMethodSymbol)a_b_int_m).Construct(compilation.GetSpecialType(SpecialType.System_DateTime)); 813var a_b_m_datetime = ((IMethodSymbol)a_b_m).Construct(compilation.GetSpecialType(SpecialType.System_DateTime));
Microsoft.Extensions.Options.SourceGeneration (1)
OptionsSourceGenContext.cs (1)
52SpecialType.System_DateTime => true,
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSManagedTypeInfo.cs (1)
70case { SpecialType: SpecialType.System_DateTime }:
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Parser.cs (2)
1670if (type.SpecialType is SpecialType.System_String or SpecialType.System_DateTime || 1800SpecialType.System_DateTime or