Skip to content

Commit

Permalink
Improve C# decompiler settings
Browse files Browse the repository at this point in the history
  • Loading branch information
KubaZ2 committed Aug 22, 2024
1 parent 9b43235 commit f08e3e2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Bot/Sharp/Decompilation/CSharpDecompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ public CSharpDecompiler(IOptions<Options> options)

private static readonly DecompilerSettings _settings = new(LanguageVersion.CSharp1)
{
ArrayInitializers = false,
AutomaticEvents = false,
DecimalConstants = false,
DoWhileStatement = false,
FixedBuffers = false,
ForEachStatement = false,
ForStatement = false,
FunctionPointers = true,
LockStatement = false,
SparseIntegerSwitch = false,
StringConcat = false,
SwitchStatementOnString = false,
UseRefLocalsForAccurateOrderOfEvaluation = true,
UsingStatement = false,
FileScopedNamespaces = true,
Expand Down

0 comments on commit f08e3e2

Please sign in to comment.