You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Errormessage:
System.ArgumentOutOfRangeException: Exception of type 'System.ArgumentOutOfRangeException' was thrown.
Parameter name: value
Actual value was 1/1/190012:00:00AM.at ICSharpCode.CodeConverter.CSharp.CommonConversions.GetLiteralExpression(Objectvalue,StringvalueText)
at ICSharpCode.CodeConverter.CSharp.VisualBasicConverter.NodesVisitor.VisitLiteralExpression(LiteralExpressionSyntaxnode)
at Microsoft.CodeAnalysis.VisualBasic.VisualBasicSyntaxVisitor`1.Visit(SyntaxNodenode)
Details
Product in use: vs extension
The text was updated successfully, but these errors were encountered:
kanonrai
changed the title
VB -> C#: cannot convert CDate('1900/01/01')
VB -> C#: cannot convert Date literals
Jul 25, 2018
where 0L would be the ticks representation of the default value given.
This will need to deal with inlining a const field as well as just constant literals.
If it doesn't work I'll have to use something more like:
publicintfoo(DateTime?optionalDate=null){vardate=optionalDate??DateTime.Parse("1/1/1900");// Rest of method body}
Attributes taking DateTime parameters don't seem to be supported in .NET fortunately
GrahamTheCoder
changed the title
VB -> C#: cannot convert Date literals
VB -> C#: Convert Date literals
Aug 17, 2018
Input code
Erroneous output
Details
Product in use: vs extension
The text was updated successfully, but these errors were encountered: