Welcome, Guest
Username: Password: Remember me
Please use this forum for suggestions to the XSharp Development Team
  • Page:
  • 1

TOPIC:

ILspy suggestion: string file paths appear in C# format 16 Dec 2020 10:04 #16949

  • George
  • George's Avatar
  • Topic Author


  • Posts: 106
  • Again in ILSpy 5.02 X# Plug-in:

    In the string file paths, the decompiled code shows the syntax for C # (\\ instead of \)

    my original code:
     
    USING System
    USING System.Collections.Generic
    USING System.IO
    USING ICSharpCode.SharpZipLib.Zip
     
    FUNCTION FileList() AS VOID
        VAR cFile := "C:\Users\George\source\repos\Test Projects\CheckIntellisense\bin\Debug\Samples\Sample.zip"
     
        VAR listFiles := ZipClass.FileList(cFile)
     
        Console.WriteLine("'"+cFile+"' Contains:")
        Console.WriteLine()
     
        FOREACH VAR oFileList IN listFiles
            Console.WriteLine(oFileList:FullPath)
        NEXT
     
        Console.WriteLine()
        Console.WriteLine("Press any key to continue...")
        Console.ReadKey()
    RETURN
     
     
    ILSpy (X#) decompiled code:
     
    // Functions
    using System
    using System.Collections.Generic
     
    public static method FileList() as void
        local cFile as string
        local listFiles as List<FileList>
        //
        cFile := "C:\\Users\\George\\source\\repos\\Test Projects\\CheckIntellisense\\bin\\Debug\\Samples\\Sample.zip"
        listFiles := ZipClass.FileList(cFile)
        Console.WriteLine("'" + cFile + "' Contains:")
        Console.WriteLine()
        foreach oFileList as FileList in listFiles
            Console.WriteLine(oFileList:FullPath)
        next
        Console.WriteLine()
        Console.WriteLine("Press any key to continue...")
        Console.ReadKey()

    regards
    George

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

    ILspy suggestion: string file paths appear in C# format 16 Dec 2020 13:18 #16951

    • robert
    • robert's Avatar


  • Posts: 3599
  • George,
    The source to the plugin can be found here:
    github.com/X-Sharp/ILSpy-Plugin

    Why don't you fix it and send Fabrice a pull request ?

    Robert
    XSharp Development Team
    The Netherlands

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

    ILspy suggestion: string file paths appear in C# format 16 Dec 2020 14:21 #16952

    • George
    • George's Avatar
    • Topic Author


  • Posts: 106
  • Robert,

    I would try, but since I have to understand the existing code and the logic of such a plugin code, I do not know how quickly or easily I can help (if I can).

    Also, as shown in the attached capture1.png, there are missing references.
    I brought the 11 missing NuGet packages to packages folder, then I update the 11 packages, but even after that there are shortcomings (capture2.png).
    I imagine the Mono (and obviously not only) should also be installed.

    regards
    George

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

    ILspy suggestion: string file paths appear in C# format 16 Dec 2020 15:24 #16953

    • Fabrice
    • Fabrice's Avatar


  • Posts: 368
  • Hi George,
    ;)...Yes, it seems to be more complex than expected !

    I will try to have a look at your feedback asap.

    Cheers,
    Fab

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

    ILspy suggestion: string file paths appear in C# format 16 Dec 2020 15:49 #16954

    • George
    • George's Avatar
    • Topic Author


  • Posts: 106
  • Thank you Fabrice

    George

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

    • Page:
    • 1