Change visibility of NUIGadgetResourceManager ctor (#5626)
authorhjhun <36876573+hjhun@users.noreply.github.com>
Tue, 17 Oct 2023 04:47:29 +0000 (13:47 +0900)
committerGitHub <noreply@github.com>
Tue, 17 Oct 2023 04:47:29 +0000 (13:47 +0900)
The visibility of NUIGadgetResourceManager(NUIGadgetInfo info) is
changed to public.

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/Tizen.NUI.Gadget/Tizen.NUI/NUIGadgetResourceManager.cs

index d9e3470..2bb42eb 100755 (executable)
@@ -36,8 +36,19 @@ namespace Tizen.NUI
         private readonly string _resourceClassName;
         private readonly IDictionary<string, global::System.Resources.ResourceManager> _resourceMap = new Dictionary<string, global::System.Resources.ResourceManager>();
 
-        internal NUIGadgetResourceManager(NUIGadgetInfo info)
+        /// <summary>
+        /// Initializes the resource manager of the gadget.
+        /// </summary>
+        /// <param name="info">The information of the gadget.</param>
+        /// <exception cref="ArgumentNullException">Thrown when failed because of a invalid argument.</exception>
+        /// <since_tizen> 11 </since_tizen>
+        public NUIGadgetResourceManager(NUIGadgetInfo info)
         {
+            if (info == null)
+            {
+                throw new ArgumentNullException(nameof(info));
+            }
+
             _resourcePath = info.ResourcePath;
             _resourceDll = info.ResourceFile;
             _resourceClassName = info.ResourceClassName;