Skip to content

Commit

Permalink
Improve C# decompilation settings
Browse files Browse the repository at this point in the history
  • Loading branch information
KubaZ2 committed Aug 19, 2024
1 parent cfc9913 commit 365c43c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Bot/Sharp/Decompilation/CSharpDecompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public CSharpDecompiler(IOptions<Options> options)
private static readonly DecompilerSettings _settings = new(LanguageVersion.CSharp1)
{
UseRefLocalsForAccurateOrderOfEvaluation = true,
UsingStatement = false,
FileScopedNamespaces = true,
};

public ValueTask<bool> DecompileAsync(ulong operationId, Stream assembly, TextWriter writer)
Expand Down

0 comments on commit 365c43c

Please sign in to comment.