[NUI] Remove build warning - CA1825
authorMoonhee, Choi <mh0310.choi@samsung.com>
Tue, 8 Dec 2020 09:27:03 +0000 (18:27 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 15 Dec 2020 06:33:59 +0000 (15:33 +0900)
src/Tizen.NUI/src/internal/ItemFactory.cs
src/Tizen.NUI/src/internal/ViewImpl.cs
src/Tizen.NUI/src/internal/Xaml/ApplyPropertiesVisitor.cs
src/Tizen.NUI/src/internal/Xaml/CreateValuesVisitor.cs
src/Tizen.NUI/src/public/XamlBinding/Element.cs

index 50926d7..d4f2d40 100755 (executable)
@@ -126,7 +126,7 @@ namespace Tizen.NUI
         private SwigDelegateItemFactory_1 swigDelegate1;
         private SwigDelegateItemFactory_2 swigDelegate2;
 
-        private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { };
+        private static global::System.Type[] swigMethodTypes0 = System.Array.Empty<global::System.Type>();
         private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { typeof(uint) };
         private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(uint), typeof(View) };
     }
index 8c71585..b794b83 100755 (executable)
@@ -844,7 +844,7 @@ namespace Tizen.NUI
         private SwigDelegateViewImpl_40 swigDelegate40;
 
         private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(int) };
-        private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
+        private static global::System.Type[] swigMethodTypes1 = System.Array.Empty<global::System.Type>();
         private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(View) };
         private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { typeof(View) };
         private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { typeof(int), typeof(PropertyValue) };
@@ -853,25 +853,25 @@ namespace Tizen.NUI
         private static global::System.Type[] swigMethodTypes9 = new global::System.Type[] { typeof(Key) };
         private static global::System.Type[] swigMethodTypes11 = new global::System.Type[] { typeof(Vector2), typeof(RelayoutContainer) };
         private static global::System.Type[] swigMethodTypes12 = new global::System.Type[] { typeof(ResizePolicyType), typeof(DimensionType) };
-        private static global::System.Type[] swigMethodTypes13 = new global::System.Type[] { };
+        private static global::System.Type[] swigMethodTypes13 = System.Array.Empty<global::System.Type>();
         private static global::System.Type[] swigMethodTypes14 = new global::System.Type[] { typeof(View), typeof(DimensionType) };
         private static global::System.Type[] swigMethodTypes15 = new global::System.Type[] { typeof(float) };
         private static global::System.Type[] swigMethodTypes16 = new global::System.Type[] { typeof(float) };
         private static global::System.Type[] swigMethodTypes17 = new global::System.Type[] { typeof(DimensionType) };
-        private static global::System.Type[] swigMethodTypes18 = new global::System.Type[] { };
+        private static global::System.Type[] swigMethodTypes18 = System.Array.Empty<global::System.Type>();
         private static global::System.Type[] swigMethodTypes19 = new global::System.Type[] { typeof(DimensionType) };
         private static global::System.Type[] swigMethodTypes20 = new global::System.Type[] { typeof(float), typeof(DimensionType) };
-        private static global::System.Type[] swigMethodTypes21 = new global::System.Type[] { };
+        private static global::System.Type[] swigMethodTypes21 = System.Array.Empty<global::System.Type>();
         private static global::System.Type[] swigMethodTypes24 = new global::System.Type[] { typeof(StyleManager), typeof(StyleChangeType) };
-        private static global::System.Type[] swigMethodTypes25 = new global::System.Type[] { };
+        private static global::System.Type[] swigMethodTypes25 = System.Array.Empty<global::System.Type>();
         private static global::System.Type[] swigMethodTypes26 = new global::System.Type[] { typeof(PanGesture) };
         private static global::System.Type[] swigMethodTypes28 = new global::System.Type[] { typeof(bool) };
-        private static global::System.Type[] swigMethodTypes29 = new global::System.Type[] { };
-        private static global::System.Type[] swigMethodTypes30 = new global::System.Type[] { };
-        private static global::System.Type[] swigMethodTypes31 = new global::System.Type[] { };
+        private static global::System.Type[] swigMethodTypes29 = System.Array.Empty<global::System.Type>();
+        private static global::System.Type[] swigMethodTypes30 = System.Array.Empty<global::System.Type>();
+        private static global::System.Type[] swigMethodTypes31 = System.Array.Empty<global::System.Type>();
         private static global::System.Type[] swigMethodTypes32 = new global::System.Type[] { typeof(View), typeof(View.FocusDirection), typeof(bool) };
         private static global::System.Type[] swigMethodTypes33 = new global::System.Type[] { typeof(View) };
-        private static global::System.Type[] swigMethodTypes34 = new global::System.Type[] { };
+        private static global::System.Type[] swigMethodTypes34 = System.Array.Empty<global::System.Type>();
         private static global::System.Type[] swigMethodTypes35 = new global::System.Type[] { typeof(PinchGesture) };
         private static global::System.Type[] swigMethodTypes36 = new global::System.Type[] { typeof(PanGesture) };
         private static global::System.Type[] swigMethodTypes37 = new global::System.Type[] { typeof(TapGesture) };
index 18d91ec..714925d 100755 (executable)
@@ -655,7 +655,7 @@ namespace Tizen.NUI.Xaml
             if (!IsVisibleFrom(getter, context.RootElement))
                 return false;
 
-            value = getter.Invoke(element, new object[] { });
+            value = getter.Invoke(element, System.Array.Empty<object>());
             return true;
         }
 
index d9e91e3..c85c2e5 100755 (executable)
@@ -244,7 +244,7 @@ namespace Tizen.NUI.Xaml
             }
 
             var factoryMethod = ((string)((ValueNode)node.Properties[XmlName.xFactoryMethod]).Value);
-            Type[] types = arguments == null ? new Type[0] : arguments.Select(a => a.GetType()).ToArray();
+            Type[] types = arguments == null ? System.Array.Empty<Type>() : arguments.Select(a => a.GetType()).ToArray();
             Func<MethodInfo, bool> isMatch = m =>
             {
                 if (m.Name != factoryMethod)
index 3184e3d..3728f80 100755 (executable)
@@ -15,7 +15,7 @@ namespace Tizen.NUI.Binding
     [EditorBrowsable(EditorBrowsableState.Never)]
     public abstract partial class Element : BindableObject, IElement, INameScope, IElementController
     {
-        internal static readonly ReadOnlyCollection<Element> EmptyChildren = new ReadOnlyCollection<Element>(new Element[0]);
+        internal static readonly ReadOnlyCollection<Element> EmptyChildren = new ReadOnlyCollection<Element>(System.Array.Empty<Element>());
 
         /// <summary>
         /// Identifies the ClassId bindable property.