ILspy suggestion: string file paths appear in C# format
Posted: Wed Dec 16, 2020 9:04 am
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
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