From 66228eb429fd31aa1befb761dc95aff595b9443d Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 12 Jan 2021 10:53:13 +1000 Subject: [PATCH] Core - Make ObjectFactory types readonly https://github.com/cefsharp/CefSharp/commit/66c95bc4997d11f212a756ed8b203e93408fe74e#r45840060 --- CefSharp.Core/ObjectFactory.cs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/CefSharp.Core/ObjectFactory.cs b/CefSharp.Core/ObjectFactory.cs index 04647ecfad..181d62d2e4 100644 --- a/CefSharp.Core/ObjectFactory.cs +++ b/CefSharp.Core/ObjectFactory.cs @@ -8,10 +8,14 @@ namespace CefSharp.Core { + /// + /// Create instances of Public Api classes, , + /// etc. + /// public static class ObjectFactory { - public static Type BrowserSetingsType = typeof(CefSharp.Core.BrowserSettings); - public static Type RequestContextType = typeof(CefSharp.Core.RequestContext); + public static readonly Type BrowserSetingsType = typeof(CefSharp.Core.BrowserSettings); + public static readonly Type RequestContextType = typeof(CefSharp.Core.RequestContext); /// /// Create a new instance of @@ -81,5 +85,14 @@ public static IUrlRequest CreateUrlRequest(IRequest request, IUrlRequestClient u { return new CefSharp.Core.UrlRequest(request, urlRequestClient, requestContext); } + + /// + /// Create a new instance of + /// + /// returns new instance of + public static IDragData CreateDragData() + { + return Core.DragData.Create(); + } } }