diff --git a/ICSharpCode.Decompiler/DecompilerSettings.cs b/ICSharpCode.Decompiler/DecompilerSettings.cs index ae314aacf..6c57402e4 100644 --- a/ICSharpCode.Decompiler/DecompilerSettings.cs +++ b/ICSharpCode.Decompiler/DecompilerSettings.cs @@ -2238,11 +2238,9 @@ namespace ICSharpCode.Decompiler } } - protected virtual DecompilerSettings ShallowClone() => this with { }; - public DecompilerSettings DeepClone() { - DecompilerSettings settings = ShallowClone(); + DecompilerSettings settings = this with { }; if (csharpFormattingOptions != null) settings.csharpFormattingOptions = csharpFormattingOptions.Clone(); settings.PropertyChanged = null;