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
This commit is contained in:
Alex Maitland
2022-03-18 09:27:13 +10:00
parent f52740b796
commit 71d07dfd41
+2 -1
View File
@@ -270,12 +270,13 @@ namespace CefSharp.WinForms
}
/// <summary>
/// <strong>Important!!!</strong>
/// 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 <see cref="ChromiumWebBrowser(string, IRequestContext)"/>
/// constructor overload instead. Using this constructor in code is unsupported and you may experience <see cref="NullReferenceException"/>'s
/// when attempting to access some of the properties immediately after instantiation.
/// </summary>
[Obsolete("Should only be used by the WinForms Designer. Use the ChromiumWebBrowser(string, IRequestContext) constructor overload instead.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public ChromiumWebBrowser()
{