From 33f088144e8de90007c402cfcfa14b327e539abe Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 18 Mar 2022 09:27:13 +1000 Subject: [PATCH] WinForms - Remove obsolete from Paramater less constructor - Causes a warning in the build log when used via the designer - Instead update the comment and set EditorBrowsableState.Never --- CefSharp.WinForms/ChromiumWebBrowser.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CefSharp.WinForms/ChromiumWebBrowser.cs b/CefSharp.WinForms/ChromiumWebBrowser.cs index 0c4fd1a568..7bd20579f9 100644 --- a/CefSharp.WinForms/ChromiumWebBrowser.cs +++ b/CefSharp.WinForms/ChromiumWebBrowser.cs @@ -270,12 +270,13 @@ private static void OnApplicationExit(object sender, EventArgs e) } /// + /// Important!!! /// This constructor exists as the WinForms designer requires a parameterless constructor, if you are instantiating /// an instance of this class in code then use the /// constructor overload instead. Using this constructor in code is unsupported and you may experience 's /// when attempting to access some of the properties immediately after instantiation. /// - [Obsolete("Should only be used by the WinForms Designer. Use the ChromiumWebBrowser(string, IRequestContext) constructor overload instead.")] + [EditorBrowsable(EditorBrowsableState.Never)] public ChromiumWebBrowser() {