|
|
|
@ -1242,6 +1242,57 @@ namespace ICSharpCode.Decompiler
@@ -1242,6 +1242,57 @@ namespace ICSharpCode.Decompiler
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
bool forStatement = true; |
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets/sets whether the decompiler should produce for loops.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Category("C# 1.0 / VS .NET")] |
|
|
|
|
[Description("DecompilerSettings.ForStatement")] |
|
|
|
|
public bool ForStatement { |
|
|
|
|
get { return forStatement; } |
|
|
|
|
set { |
|
|
|
|
if (forStatement != value) { |
|
|
|
|
forStatement = value; |
|
|
|
|
OnPropertyChanged(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool doWhileStatement = true; |
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets/sets whether the decompiler should produce do-while loops.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Category("C# 1.0 / VS .NET")] |
|
|
|
|
[Description("DecompilerSettings.DoWhileStatement")] |
|
|
|
|
public bool DoWhileStatement { |
|
|
|
|
get { return doWhileStatement; } |
|
|
|
|
set { |
|
|
|
|
if (doWhileStatement != value) { |
|
|
|
|
doWhileStatement = value; |
|
|
|
|
OnPropertyChanged(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool separateLocalVariableDeclarations = false; |
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets/sets whether the decompiler should separate local variable declarations from their initialization.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Category("DecompilerSettings.Other")] |
|
|
|
|
[Description("DecompilerSettings.SeparateLocalVariableDeclarations")] |
|
|
|
|
public bool SeparateLocalVariableDeclarations { |
|
|
|
|
get { return separateLocalVariableDeclarations; } |
|
|
|
|
set { |
|
|
|
|
if (separateLocalVariableDeclarations != value) { |
|
|
|
|
separateLocalVariableDeclarations = value; |
|
|
|
|
OnPropertyChanged(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
CSharpFormattingOptions csharpFormattingOptions; |
|
|
|
|
|
|
|
|
|
[Browsable(false)] |
|
|
|
|