Skip to content

Commit 82e461b

Browse files
Change return type of Clone method in derived class.
1 parent 49d5bb8 commit 82e461b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ICSharpCode.Decompiler/DecompilerSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2238,7 +2238,7 @@ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName
22382238
}
22392239
}
22402240

2241-
public DecompilerSettings Clone()
2241+
public virtual DecompilerSettings Clone()
22422242
{
22432243
DecompilerSettings settings = (DecompilerSettings)MemberwiseClone();
22442244
if (csharpFormattingOptions != null)

ILSpy/Options/DecompilerSettings.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
// DEALINGS IN THE SOFTWARE.
1818

1919
using System.ComponentModel;
20-
21-
using ICSharpCode.ILSpyX.Settings;
2220
using System.Linq;
2321
using System.Reflection;
2422
using System.Xml.Linq;
@@ -56,5 +54,10 @@ public void LoadFromXml(XElement section)
5654
p.SetValue(this, value.Value);
5755
}
5856
}
57+
58+
public override DecompilerSettings Clone()
59+
{
60+
return (DecompilerSettings)base.Clone();
61+
}
5962
}
6063
}

0 commit comments

Comments
 (0)