Skip to content

Commit 71d07df

Browse files
committed
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
1 parent f52740b commit 71d07df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CefSharp.WinForms/ChromiumWebBrowser.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,13 @@ private static void OnApplicationExit(object sender, EventArgs e)
270270
}
271271

272272
/// <summary>
273+
/// <strong>Important!!!</strong>
273274
/// This constructor exists as the WinForms designer requires a parameterless constructor, if you are instantiating
274275
/// an instance of this class in code then use the <see cref="ChromiumWebBrowser(string, IRequestContext)"/>
275276
/// constructor overload instead. Using this constructor in code is unsupported and you may experience <see cref="NullReferenceException"/>'s
276277
/// when attempting to access some of the properties immediately after instantiation.
277278
/// </summary>
278-
[Obsolete("Should only be used by the WinForms Designer. Use the ChromiumWebBrowser(string, IRequestContext) constructor overload instead.")]
279+
[EditorBrowsable(EditorBrowsableState.Never)]
279280
public ChromiumWebBrowser()
280281
{
281282

0 commit comments

Comments
 (0)