ILspy suggestion: string file paths appear in C# format

Have some feedback and input to share?
Don't be shy and drop us a note. We want to hear from you and strive to make our site better and more user friendly for our guests and members a like.
Post Reply
George
Posts: 106
Joined: Thu Nov 05, 2015 9:17 am

ILspy suggestion: string file paths appear in C# format

Post by George »

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:UsersGeorgesourcereposTest ProjectsCheckIntellisensebinDebugSamplesSample.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:UsersGeorgesourcereposTest ProjectsCheckIntellisensebinDebugSamplesSample.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
User avatar
robert
Posts: 4555
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

ILspy suggestion: string file paths appear in C# format

Post by robert »

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

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

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
George
Posts: 106
Joined: Thu Nov 05, 2015 9:17 am

ILspy suggestion: string file paths appear in C# format

Post by George »

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
Capture1.PNG
Capture1.PNG (24.99 KiB) Viewed 2072 times
Capture2.PNG
Capture2.PNG (25.44 KiB) Viewed 2072 times
George
User avatar
Fabrice
Posts: 463
Joined: Thu Oct 08, 2015 7:47 am
Location: France

ILspy suggestion: string file paths appear in C# format

Post by Fabrice »

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

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

Cheers,
Fab
XSharp Development Team
fabrice(at)xsharp.eu
George
Posts: 106
Joined: Thu Nov 05, 2015 9:17 am

ILspy suggestion: string file paths appear in C# format

Post by George »

Thank you Fabrice

George
Post Reply