Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

ILSpy (7.2.1): System.NotSupportedException: Invalid value for FieldDirection 24 Nov 2022 10:11 #24554

  • HansjoergP
  • HansjoergP's Avatar
  • Topic Author


  • Posts: 77
  • The following code results to an exception in ILSpy using the X# Addin. The problem is the "in" in the parameter declaration ot TestMethod3
    public partial class TestPartial
            public method TestMethod3(col in usual) as logic
                return true
    		public method TestMethod2() as logic
                return self:TestMethod3(1)
    end class
    System.NotSupportedException: Invalid value for FieldDirection
       bei ILSpy.XSharpLanguage.XSharpOutputVisitor.VisitDirectionExpression(DirectionExpression directionExpression)
       bei ILSpy.XSharpLanguage.XSharpOutputVisitor.WriteCommaSeparatedList(IEnumerable`1 list)
       bei ILSpy.XSharpLanguage.XSharpOutputVisitor.WriteCommaSeparatedListInParenthesis(IEnumerable`1 list, Boolean spaceWithin)
       bei ILSpy.XSharpLanguage.XSharpOutputVisitor.VisitInvocationExpression(InvocationExpression invocationExpression)
       bei ILSpy.XSharpLanguage.XSharpOutputVisitor.VisitReturnStatement(ReturnStatement returnStatement)
       bei ILSpy.XSharpLanguage.XSharpOutputVisitor.WriteBlock(BlockStatement blockStatement, BraceStyle style)
       bei ILSpy.XSharpLanguage.XSharpOutputVisitor.WriteMethodBody(BlockStatement body, BraceStyle style)
       bei ILSpy.XSharpLanguage.XSharpOutputVisitor.VisitMethodDeclaration(MethodDeclaration methodDeclaration)
       bei ILSpy.XSharpLanguage.XSharpOutputVisitor.VisitSyntaxTree(SyntaxTree syntaxTree)
       bei ILSpy.XSharpLanguage.XSharpLanguage.WriteCode(ITextOutput output, DecompilerSettings settings, SyntaxTree syntaxTree, IDecompilerTypeSystem typeSystem)
       bei ILSpy.XSharpLanguage.XSharpLanguage.DecompileMethod(IMethod methoddef, ITextOutput output, DecompilationOptions options)
       bei ICSharpCode.ILSpy.TextView.DecompilerTextView.DecompileNodes(DecompilationContext context, ITextOutput textOutput)
       bei ICSharpCode.ILSpy.TextView.DecompilerTextView.<>c__DisplayClass51_0.<DecompileAsync>b__0()

    Please Log in or Create an account to join the conversation.

    ILSpy (7.2.1): System.NotSupportedException: Invalid value for FieldDirection 24 Nov 2022 13:05 #24557

    • robert
    • robert's Avatar


  • Posts: 3600
  • Hansjoerg,
    There is an update here:

    www.xsharp.eu/itm-downloads/download?pat...pLanguage.Plugin.zip

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    ILSpy (7.2.1): System.NotSupportedException: Invalid value for FieldDirection 24 Nov 2022 13:20 #24559

    • HansjoergP
    • HansjoergP's Avatar
    • Topic Author


  • Posts: 77
  • Thanks!

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1
    Moderators: wriedmann