[NUI.Gadget] Modify NUIGadgetManager.Add() method (#5063)
authorhjhun <36876573+hjhun@users.noreply.github.com>
Wed, 8 Mar 2023 04:24:01 +0000 (13:24 +0900)
committerGitHub <noreply@github.com>
Wed, 8 Mar 2023 04:24:01 +0000 (13:24 +0900)
When calling the CreateInstance() method, this patch modifies the set
the ignoreCase to true that the case of the className is no checked.

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

index fda5e27..1795293 100755 (executable)
@@ -146,7 +146,7 @@ namespace Tizen.NUI
                 throw new InvalidOperationException(e.Message);
             }
 
-            NUIGadget gadget = assembly.CreateInstance(className) as NUIGadget;
+            NUIGadget gadget = assembly.CreateInstance(className, true) as NUIGadget;
             if (gadget == null)
             {
                 throw new InvalidOperationException("Failed to create instance. className: " + className);