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
using System.Drawing;publicpartialclass VisualBasicClass
{publicvoidM(){Point@init=new Point();varShape=(@init.X =1, @init.Y =default
#error Cannot convert MemberAccessExpressionSyntax - see comment for details
/* Cannot convert MemberAccessExpressionSyntax, System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at ICSharpCode.CodeConverter.CSharp.ExpressionNodeVisitor.<VisitMemberAccessExpression>d__53.MoveNext() in C:\Users\gph77\source\repos\CodeConverter\CodeConverter\CSharp\ExpressionNodeVisitor.cs:line 435 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at ICSharpCode.CodeConverter.CSharp.CommentConvertingVisitorWrapper.<ConvertHandledAsync>d__12`1.MoveNext() in C:\Users\gph77\source\repos\CodeConverter\CodeConverter\CSharp\CommentConvertingVisitorWrapper.cs:line 40 Input: .X */, @init).@init;}}System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKeykey)
at ICSharpCode.CodeConverter.CSharp.ExpressionNodeVisitor.<VisitMemberAccessExpression>d__53.MoveNext() in C:\Users\gph77\source\repos\CodeConverter\CodeConverter\CSharp\ExpressionNodeVisitor.cs:line 435--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Tasktask)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at ICSharpCode.CodeConverter.CSharp.CommentConvertingVisitorWrapper.<ConvertHandledAsync>d__12`1.MoveNext() in C:\Users\gph77\source\repos\CodeConverter\CodeConverter\CSharp\CommentConvertingVisitorWrapper.cs:line 40
Expected output
using System.Drawing;publicpartialclassVisualBasicClass{publicvoidM(){Point@init=new Point();varShape=(@init.X =1, @init.Y = @init.X, @init).@init;}}
VB.Net input code
Erroneous output
Expected output
Details
This is due to only handling one of the types of collection initializers
The text was updated successfully, but these errors were encountered: