[NUI] Add license, delete unnecessary code(public)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / XamlBinding / BindingBase.cs
index 1aa8add..49f468b 100755 (executable)
@@ -1,3 +1,20 @@
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
 using System;
 using System.Collections;
 using System.Runtime.CompilerServices;
@@ -13,10 +30,10 @@ namespace Tizen.NUI.Binding
     {
         static readonly ConditionalWeakTable<IEnumerable, CollectionSynchronizationContext> SynchronizedCollections = new ConditionalWeakTable<IEnumerable, CollectionSynchronizationContext>();
 
-        BindingMode _mode = BindingMode.Default;
-        string _stringFormat;
-        object _targetNullValue;
-        object _fallbackValue;
+        BindingMode mode = BindingMode.Default;
+        string stringFormat;
+        object targetNullValue;
+        object fallbackValue;
 
         internal BindingBase()
         {
@@ -29,7 +46,7 @@ namespace Tizen.NUI.Binding
         [EditorBrowsable(EditorBrowsableState.Never)]
         public BindingMode Mode
         {
-            get { return _mode; }
+            get { return mode; }
             set
             {
                 if (value != BindingMode.Default
@@ -41,7 +58,7 @@ namespace Tizen.NUI.Binding
 
                 ThrowIfApplied();
 
-                _mode = value;
+                mode = value;
             }
         }
 
@@ -52,12 +69,12 @@ namespace Tizen.NUI.Binding
         [EditorBrowsable(EditorBrowsableState.Never)]
         public string StringFormat
         {
-            get { return _stringFormat; }
+            get { return stringFormat; }
             set
             {
                 ThrowIfApplied();
 
-                _stringFormat = value;
+                stringFormat = value;
             }
         }
 
@@ -65,11 +82,11 @@ namespace Tizen.NUI.Binding
         [EditorBrowsable(EditorBrowsableState.Never)]
         public object TargetNullValue
         {
-            get { return _targetNullValue; }
+            get { return targetNullValue; }
             set
             {
                 ThrowIfApplied();
-                _targetNullValue = value;
+                targetNullValue = value;
             }
         }
 
@@ -77,11 +94,11 @@ namespace Tizen.NUI.Binding
         [EditorBrowsable(EditorBrowsableState.Never)]
         public object FallbackValue
         {
-            get => _fallbackValue;
+            get => fallbackValue;
             set
             {
                 ThrowIfApplied();
-                _fallbackValue = value;
+                fallbackValue = value;
             }
         }