From c7e477b306dd5d8f283bfca5117527aefebcb219 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 22 Oct 2021 16:29:21 +1000 Subject: [PATCH] WebBrowserExtensions - Hide RegisterJsObject and RegisterAsyncJsObject from intellisense They're obsolete and will throw exceptions anyway, only exist to point upgrading users to the correct doco --- CefSharp/WebBrowserExtensions.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CefSharp/WebBrowserExtensions.cs b/CefSharp/WebBrowserExtensions.cs index e388e09c7..9aba8568a 100644 --- a/CefSharp/WebBrowserExtensions.cs +++ b/CefSharp/WebBrowserExtensions.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Specialized; +using System.ComponentModel; using System.Globalization; using System.IO; using System.Text; @@ -30,6 +31,7 @@ namespace CefSharp /// Browser is already initialized. RegisterJsObject must be + /// called before the underlying CEF browser is created. [Obsolete("This method has been removed, see https://github.com/cefsharp/CefSharp/issues/2990 for details on migrating your code.")] + [EditorBrowsable(EditorBrowsableState.Never)] public static void RegisterJsObject(this IWebBrowser webBrowser, string name, object objectToBind, BindingOptions options = null) { throw new NotImplementedException("This method has been removed, see https://github.com/cefsharp/CefSharp/issues/2990 for details on migrating your code."); @@ -48,6 +50,7 @@ namespace CefSharp /// The registered methods can only be called in an async way, they will all return immediately and the resulting /// object will be a standard javascript Promise object which is usable to wait for completion or failure. [Obsolete("This method has been removed, see https://github.com/cefsharp/CefSharp/issues/2990 for details on migrating your code.")] + [EditorBrowsable(EditorBrowsableState.Never)] public static void RegisterAsyncJsObject(this IWebBrowser webBrowser, string name, object objectToBind, BindingOptions options = null) { throw new NotImplementedException("This method has been removed, see https://github.com/cefsharp/CefSharp/issues/2990 for details on migrating your code.");