Browse Source

Remove ShallowClone method

pull/3488/head
ds5678 3 weeks ago
parent
commit
8e50dd7991
  1. 4
      ICSharpCode.Decompiler/DecompilerSettings.cs

4
ICSharpCode.Decompiler/DecompilerSettings.cs

@ -2238,11 +2238,9 @@ namespace ICSharpCode.Decompiler
} }
} }
protected virtual DecompilerSettings ShallowClone() => this with { };
public DecompilerSettings DeepClone() public DecompilerSettings DeepClone()
{ {
DecompilerSettings settings = ShallowClone(); DecompilerSettings settings = this with { };
if (csharpFormattingOptions != null) if (csharpFormattingOptions != null)
settings.csharpFormattingOptions = csharpFormattingOptions.Clone(); settings.csharpFormattingOptions = csharpFormattingOptions.Clone();
settings.PropertyChanged = null; settings.PropertyChanged = null;

Loading…
Cancel
Save