[NUI] Reduce build warning CA1805: Do not initialize unnecessarily (Phase Internal...
authorEunki Hong <eunkiki.hong@samsung.com>
Mon, 31 Mar 2025 15:05:59 +0000 (00:05 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Tue, 1 Apr 2025 11:52:37 +0000 (20:52 +0900)
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1805

Let we don't initialize known values as default.

warning messages
```
TizenFX/src/Tizen.NUI/src/devel/Lite/UIRect.cs(66,35): warning CA1805: Member 'Zero' is explicitly initialized to its default value
TizenFX/src/Tizen.NUI/src/internal/Application/Application.cs(369,55): warning CA1805: Member 'rootIdleCallback' is explicitly initialized to its default value
...
```

For now, just resolve this errors for internal and devel and some non-touched public recently.

Warning counts 1817 -> 1519 (reduce 298 warnings)

Remained warnings for CA1805 : `BaseComponents`, `Color`, `Renderer`.

Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
97 files changed:
src/Tizen.NUI/src/devel/Lite/UIRect.cs
src/Tizen.NUI/src/internal/Application/Application.cs
src/Tizen.NUI/src/internal/Application/NUICoreBackend.cs
src/Tizen.NUI/src/internal/Common/ControlStateUtility.cs
src/Tizen.NUI/src/internal/Common/Disposable.cs
src/Tizen.NUI/src/internal/Common/DisposeQueue.cs
src/Tizen.NUI/src/internal/Common/NUIWindowInfo.cs
src/Tizen.NUI/src/internal/Common/NUIWindowProxy.cs
src/Tizen.NUI/src/internal/Common/ProcessorController.cs
src/Tizen.NUI/src/internal/Common/SystemFontSizeChangedManager.cs
src/Tizen.NUI/src/internal/FrameBroker/FrameBrokerBase.cs
src/Tizen.NUI/src/internal/FrameBroker/FrameData.cs
src/Tizen.NUI/src/internal/FrameProvider/FrameProvider.cs
src/Tizen.NUI/src/internal/Interop/NDalicPINVOKE.cs
src/Tizen.NUI/src/internal/Layouting/GridLocations.cs
src/Tizen.NUI/src/internal/Layouting/LayoutController.cs
src/Tizen.NUI/src/internal/Layouting/LayoutTransitionManager.cs
src/Tizen.NUI/src/internal/Transition/TransitionGroupItem.cs
src/Tizen.NUI/src/internal/Utility/ColorCutQuantizer.cs
src/Tizen.NUI/src/internal/WebView/WebBackForwardList.cs
src/Tizen.NUI/src/internal/Xaml/TypeConversionExtensions.cs
src/Tizen.NUI/src/internal/Xaml/XmlName.cs
src/Tizen.NUI/src/public/Accessibility/Accessibility.cs
src/Tizen.NUI/src/public/Animation/Animation.cs
src/Tizen.NUI/src/public/Animation/TransitionOptions.cs
src/Tizen.NUI/src/public/Application/NUIApplication.cs
src/Tizen.NUI/src/public/Application/NUIFrameComponent.cs
src/Tizen.NUI/src/public/Application/NUIWidgetComponent.cs
src/Tizen.NUI/src/public/Application/WindowData.cs
src/Tizen.NUI/src/public/ApplicationAnimation/ApplicationTransitionManager.cs
src/Tizen.NUI/src/public/BaseComponents/Style/ViewStyle.cs
src/Tizen.NUI/src/public/Clipboard/Clipboard.cs
src/Tizen.NUI/src/public/Common/BaseHandle.cs
src/Tizen.NUI/src/public/Common/Container.cs
src/Tizen.NUI/src/public/Common/Extents.cs
src/Tizen.NUI/src/public/Common/FrameUpdateCallbackInterface.cs
src/Tizen.NUI/src/public/Common/Layer.cs
src/Tizen.NUI/src/public/Common/NUIConstants.cs
src/Tizen.NUI/src/public/Common/Position.cs
src/Tizen.NUI/src/public/Common/Position2D.cs
src/Tizen.NUI/src/public/Common/Rectangle.cs
src/Tizen.NUI/src/public/Common/RelativeVector4.cs
src/Tizen.NUI/src/public/Common/Size.cs
src/Tizen.NUI/src/public/Common/Size2D.cs
src/Tizen.NUI/src/public/Common/Vector2.cs
src/Tizen.NUI/src/public/Common/Vector3.cs
src/Tizen.NUI/src/public/Common/Vector4.cs
src/Tizen.NUI/src/public/Common/WeakEvent.cs
src/Tizen.NUI/src/public/CustomView/CustomViewRegistry.cs
src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs
src/Tizen.NUI/src/public/Images/EncodedImageBuffer.cs
src/Tizen.NUI/src/public/Input/FocusManager.cs
src/Tizen.NUI/src/public/Input/InputMethod.cs
src/Tizen.NUI/src/public/Input/KeyValue.cs
src/Tizen.NUI/src/public/Layouting/FlexLayout.cs
src/Tizen.NUI/src/public/Layouting/GridLayout.cs
src/Tizen.NUI/src/public/Layouting/LayoutItem.cs
src/Tizen.NUI/src/public/Layouting/LayoutTransition.cs
src/Tizen.NUI/src/public/Layouting/LinearLayout.cs
src/Tizen.NUI/src/public/Layouting/RelativeLayout.cs
src/Tizen.NUI/src/public/ParticleSystem/ParticleEmitter.cs
src/Tizen.NUI/src/public/ParticleSystem/ParticleModifier.cs
src/Tizen.NUI/src/public/ParticleSystem/ParticleSource.cs
src/Tizen.NUI/src/public/Theme/Theme.cs
src/Tizen.NUI/src/public/Theme/ThemeManager.cs
src/Tizen.NUI/src/public/Transition/FadeTransition.cs
src/Tizen.NUI/src/public/Transition/TransitionBase.cs
src/Tizen.NUI/src/public/Transition/TransitionGroup.cs
src/Tizen.NUI/src/public/Utility/AccumulatingVelocityTrackerStrategy.cs
src/Tizen.NUI/src/public/Utility/Timer.cs
src/Tizen.NUI/src/public/Utility/VelocityTracker.cs
src/Tizen.NUI/src/public/ViewProperty/BackgroundExtraData.cs
src/Tizen.NUI/src/public/ViewProperty/LayoutExtraData.cs
src/Tizen.NUI/src/public/ViewProperty/TextShadow.cs
src/Tizen.NUI/src/public/Visuals/AnimatedImageVisual.cs
src/Tizen.NUI/src/public/Visuals/BorderVisual.cs
src/Tizen.NUI/src/public/Visuals/ColorVisual.cs
src/Tizen.NUI/src/public/Visuals/GradientVisual.cs
src/Tizen.NUI/src/public/Visuals/ImageVisual.cs
src/Tizen.NUI/src/public/Visuals/MeshVisual.cs
src/Tizen.NUI/src/public/Visuals/NPatchVisual.cs
src/Tizen.NUI/src/public/Visuals/PrimitiveVisual.cs
src/Tizen.NUI/src/public/Visuals/SVGVisual.cs
src/Tizen.NUI/src/public/Visuals/TextVisual.cs
src/Tizen.NUI/src/public/Visuals/VisualAnimator.cs
src/Tizen.NUI/src/public/Visuals/VisualMaps.cs
src/Tizen.NUI/src/public/Visuals/VisualObject/AdvancedTextVisual.cs
src/Tizen.NUI/src/public/Visuals/VisualObject/AnimatedImageVisual.cs
src/Tizen.NUI/src/public/Visuals/VisualObject/ImageVisual.cs
src/Tizen.NUI/src/public/Visuals/VisualObject/VisualBase.cs
src/Tizen.NUI/src/public/WebView/WebView.cs
src/Tizen.NUI/src/public/WebView/WebViewBindableProperty.cs
src/Tizen.NUI/src/public/Window/BorderWindow.cs
src/Tizen.NUI/src/public/Window/DefaultBorder.cs
src/Tizen.NUI/src/public/Window/Window.cs
src/Tizen.NUI/src/public/Xaml/XamlServiceProvider.cs
src/Tizen.NUI/src/public/XamlBinding/Setter.cs

index e48b48366c1ae3d785572f6a4f1fdfcf86d132b6..f0b38b67139c095534dfc06e720f8d3cd068565f 100644 (file)
@@ -63,7 +63,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Gets a <see cref="UIRect"/> structure with all coordinates and sizes set to zero.
         /// </summary>
-        public static UIRect Zero = new UIRect();
+        public static readonly UIRect Zero;
 
         /// <summary>
         /// Gets the y-coordinate of the top edge of the rectangle.
index 5c6669b9518a5cd7a48caf9fca8b3328a59c43b0..66cda0d1a9aef0a69637d9041ff0fb9e17cb5f45 100755 (executable)
@@ -366,7 +366,7 @@ namespace Tizen.NUI
         [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
         private delegate void RootIdleCallbackType();
 
-        private RootIdleCallbackType rootIdleCallback = null;
+        private RootIdleCallbackType rootIdleCallback;
         private Dictionary<System.Delegate, bool> idleCallbackMap = new Dictionary<System.Delegate, bool>();
 
         private void RootIdleCallback()
index bc79963932b1e4a33fb958f8690a23ca89ed07e7..01f2f05b29936cbf0317ad0bc4cdf6741b7ebd7c 100755 (executable)
@@ -32,10 +32,10 @@ namespace Tizen.NUI
         protected Application application;
         private string stylesheet = "";
         private NUIApplication.WindowMode windowMode = NUIApplication.WindowMode.Opaque;
-        private Rectangle windowRectangle = null;
+        private Rectangle windowRectangle;
         private WindowType defaultWindowType = WindowType.Normal;
         private ICoreTask coreTask;
-        private WindowData windowData = null;
+        private WindowData windowData;
 
         /// <summary>
         /// The Dictionary to contain each type of event callback.
index efdd0acc3e9f1d7ab806b60756e36e8c03bd2645..7eb2d4fe51831624d403b3716349b706089c7cf8 100644 (file)
@@ -27,7 +27,7 @@ namespace Tizen.NUI
     {
         private const int MaxBitWidth = 62;
         private static readonly Dictionary<string, ulong> registeredStates = new Dictionary<string, ulong>();
-        private static int nextBitPosition = 0;
+        private static int nextBitPosition;
 
         /// <summary>
         /// </summary>
index e394b1c8684d7b770f24ee6bf7365fad4b99ca68..358e6a9e92512e25e7f230c6afd3170d634e42d3 100644 (file)
@@ -40,7 +40,7 @@ namespace Tizen.NUI
 
         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
         private bool swigCMemOwn { get; set; }
-        private bool isDisposeQueued = false;
+        private bool isDisposeQueued;
 
         /// <summary>
         /// Create an instance of Disposable.
index d4c837df6e81a245004ec8e8884a10fba5559ce1..93f68d6dffcf4af12714dea68f496a63566f9136 100755 (executable)
@@ -37,12 +37,12 @@ namespace Tizen.NUI
         private EventThreadCallback eventThreadCallback;
         private EventThreadCallback.CallbackDelegate disposeQueueProcessDisposablesDelegate;
 
-        private bool initialized = false;
-        private bool processorRegistered = false;
-        private bool eventThreadCallbackTriggered = false;
+        private bool initialized;
+        private bool processorRegistered;
+        private bool eventThreadCallbackTriggered;
 
-        private bool incrementalDisposeSupported = false;
-        private bool fullCollectRequested = false;
+        private bool incrementalDisposeSupported;
+        private bool fullCollectRequested;
 
         private DisposeQueue()
         {
index ce15d23680f04e5180491d6462c75ca8187e2db5..265d02008ee5aa8d4a5623aece59659c1b48b836 100755 (executable)
@@ -28,7 +28,7 @@ namespace Tizen.NUI
         private const string logTag = "Tizen.NUI";
         private Window window;
         private int resourceId;
-        private bool disposed = false;
+        private bool disposed;
 
         /// <summary>
         /// Initializes the NUI Window class.
index a323c7e622da0c0a641e0737f5ea76bc67585a33..6fa0dddcd0d1848c430f59fb9e4e60d41da3cad3 100755 (executable)
@@ -28,7 +28,7 @@ namespace Tizen.NUI
         private const string logTag = "Tizen.NUI";
         private Window window;
         private int resourceId;
-        private bool disposed = false;
+        private bool disposed;
 
         /// <summary>
         /// Initializes the NUI Window class.
index f59aea7e1e5a59afc1cec0d90f7b28430d88f553..e87ea2b9a43957a322dd3ed0a52db6358bb2af0e 100755 (executable)
@@ -33,8 +33,8 @@ namespace Tizen.NUI
     /// </summary>
     internal sealed class ProcessorController : Disposable
     {
-        private static ProcessorController instance = null;
-        private static bool initialized = false;
+        private static ProcessorController instance;
+        private static bool initialized;
 
         private ProcessorController() : this(true)
         {
@@ -63,7 +63,7 @@ namespace Tizen.NUI
         [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
         internal delegate void ProcessorEventHandler();
 
-        private ProcessorEventHandler processorCallback = null;
+        private ProcessorEventHandler processorCallback;
 
         private uint onceEventIndex;
         // Double buffered once event processing
index 80bd96f01baab18a6c90e6cb406266504ea1b162..a337e1550379ab641fbebb1e0fd560079f166ab8 100644 (file)
@@ -28,7 +28,7 @@ namespace Tizen.NUI
     /// </summary>
     internal static class SystemFontSizeChangedManager
     {
-        private static SystemSettingsFontSize? fontSize = null;
+        private static SystemSettingsFontSize? fontSize;
         private static WeakEvent<EventHandler<FontSizeChangedEventArgs>> proxy = new WeakEvent<EventHandler<FontSizeChangedEventArgs>>();
 
         static SystemFontSizeChangedManager()
index c11af917ece23f6009b8a17adcce1d0ac7ca3019..74c23c60c273f3c3c1c4d0ee58b78f8fbfa73978 100755 (executable)
@@ -32,10 +32,10 @@ namespace Tizen.NUI
         private string logTag = "NUI";
         private readonly SafeFrameBrokerHandle handle;
         private Dictionary<int, Interop.FrameBroker.AppControlResultCallback> resultCallbackMaps = new Dictionary<int, Interop.FrameBroker.AppControlResultCallback>();
-        private int resultId = 0;
+        private int resultId;
         private Interop.FrameBroker.FrameContextLifecycleCallbacks callbacks;
         private IntPtr context = IntPtr.Zero;
-        private bool disposed = false;
+        private bool disposed;
 
         private Renderer renderer;
         private TextureSet textureSet;
index 384611d88c0a2e972f618391f830e615caf601f9..7943150555ca4d297e88463b7af797b1d358a626 100755 (executable)
@@ -27,7 +27,7 @@ namespace Tizen.NUI
         private const string logTag = "NUI";
         private readonly IntPtr frame;
         private int fd = -1;
-        private uint size = 0;
+        private uint size;
 
         internal FrameData(IntPtr frame)
         {
index da46e485b9d7b176ba176d9011205b2138ae385c..edb8c67a9f7f00a08c0fb3952426ad97f21b2cb5 100755 (executable)
@@ -29,7 +29,7 @@ namespace Tizen.NUI
         private string logTag = "NUI";
         private readonly SafeFrameProviderHandle handle;
         private Interop.FrameProvider.FrameProviderEventCallbacks callbacks;
-        private bool disposed = false;
+        private bool disposed;
 
         /// <summary>
         /// Initializes the FrameProvider class.
index 84da874a7b5e954f2da2654ced6aaef802709e16..b5ed36b492bf8b8ce78c212d7714db8f09340c7c 100755 (executable)
@@ -167,7 +167,7 @@ namespace Tizen.NUI
         {
             [global::System.ThreadStatic]
             private static global::System.Exception pendingException = null;
-            private static int numExceptionsPending = 0;
+            private static int numExceptionsPending;
             private static readonly object exceptionPendingLock = new object();
 
             /// <since_tizen> 3 </since_tizen>
index 5782597cc75285f8d6558e57ce1b6417e4d59e85..c240f7cbb18f671f8b6899220fd9547730ecbd3e 100755 (executable)
@@ -30,8 +30,8 @@ namespace Tizen.NUI
         private int maxColumnConut;
         private float[] hLocations;
         private float[] vLocations;
-        private int totalHorizontalExpand = 0;
-        private int totalVerticalExpand = 0;
+        private int totalHorizontalExpand;
+        private int totalVerticalExpand;
 
         private List<GridChild> gridChildren = new List<GridChild>();
 
index 0f88b84559127f52a48a2aa1cc302cbdeeae0634..553dbab07d9db659448e4c936afcf07a24eff492 100755 (executable)
@@ -35,7 +35,7 @@ namespace Tizen.NUI
         private float windowHeight;
         private LayoutTransitionManager transitionManager;
 
-        private int layoutCount = 0;
+        private int layoutCount;
 
         /// <summary>
         /// Constructs a LayoutController which controls the measuring and layouting.<br />
index 803a8bcdc1a01e3563a2d6332322a22a15a50095..0e5b5a76adfdf535050181fa26af2c6d62d846d1 100755 (executable)
@@ -23,7 +23,7 @@ namespace Tizen.NUI
 {
     internal class LayoutTransitionManager : Disposable
     {
-        private bool overrideCoreAnimation = false;
+        private bool overrideCoreAnimation;
         private Animation coreAnimation;
         private List<LayoutData> layoutTransitionDataQueue;
         private List<LayoutItem> itemRemovalQueue;
index 4d8f5ed99af33fc4b33c464c4306de63b0e69b4e..fefa1275fc55ac5f50c09068ddcf97e537a2449f 100644 (file)
@@ -28,13 +28,13 @@ namespace Tizen.NUI
     /// </summary>
     internal class TransitionGroupItem : TransitionItemBase
     {
-        private List<TransitionItemBase> transitionItemList = null;
+        private List<TransitionItemBase> transitionItemList;
 
-        private bool useGroupTimePeriod = false;
-        private bool stepTransition = false;
-        private bool useGroupAlphaFunction = false;
+        private bool useGroupTimePeriod;
+        private bool stepTransition;
+        private bool useGroupAlphaFunction;
 
-        private View transitionView = null;
+        private View transitionView;
 
         /// <summary>
         /// Creates an initialized fade.<br />
index e8023009ce7a96e6f0fada705397a6c53621f543..23d9154625f162319f35d2531180c130fada313b 100755 (executable)
@@ -261,7 +261,7 @@ namespace Tizen.NUI
             private const int minGrow = 1;
 
             private int capacity = initialcapacity;
-            private int tail = 0;
+            private int tail;
             private T[] heap = Array.Empty<T>();
 
             public CustomHeap(Comparer<T> comparer)
index 0e3f596569e8c10fb391d302a2b0f94c92723bfb..ef610e7215c1eef4ed96671c30648702938e3296 100755 (executable)
@@ -78,8 +78,8 @@ namespace Tizen.NUI
     [EditorBrowsable(EditorBrowsableState.Never)]
     public class WebBackForwardList : Disposable
     {
-        private WebBackForwardSubList backwardItemList = null;
-        private WebBackForwardSubList forwardItemList = null;
+        private WebBackForwardSubList backwardItemList;
+        private WebBackForwardSubList forwardItemList;
 
         internal WebBackForwardList(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
         {
index b13df2cb4302bd6dd3c8a37a412cbf8ec01c95bb..177730cf5ea39c9f5e757ee93d0ece9f7d3a798b 100755 (executable)
@@ -143,7 +143,7 @@ namespace Tizen.NUI.Xaml
 
         private delegate void ParseValueFunc(string s, IFormatProvider provider);
 
-        static private Dictionary<Type, ParseValueFunc> typeToParseValueFunc = null;
+        static private Dictionary<Type, ParseValueFunc> typeToParseValueFunc;
 
         static private void BuildParseValueFunc()
         {
index 0d117ccd1c9fd5e56197de7c46ed3602505e614b..bc57e089b9a2512929cbba4a1722366593450ac0 100755 (executable)
@@ -29,7 +29,7 @@ namespace Tizen.NUI.Xaml
         public static readonly XmlName xArguments = new XmlName("x", "Arguments");
         public static readonly XmlName xFactoryMethod = new XmlName("x", "FactoryMethod");
         public static readonly XmlName xDataType = new XmlName("x", "DataType");
-        public static readonly XmlName Empty = new XmlName();
+        public static readonly XmlName Empty;
 
         public string NamespaceURI { get; }
         public string LocalName { get; }
index 2fe5a1e341b82d445786d1b23509d32af1efc390..9503bfae04b5b68649dccc144230f71b0ccdb0e7 100755 (executable)
@@ -320,13 +320,13 @@ namespace Tizen.NUI.Accessibility
         #endregion Event, Enum, Struct, ETC
 
         #region Private
-        private static Interop.Accessibility.EnabledDisabledSignalHandler enabledSignalHandler = null;
+        private static Interop.Accessibility.EnabledDisabledSignalHandler enabledSignalHandler;
 
-        private static Interop.Accessibility.EnabledDisabledSignalHandler disabledSignalHandler = null;
+        private static Interop.Accessibility.EnabledDisabledSignalHandler disabledSignalHandler;
 
-        private static Interop.Accessibility.EnabledDisabledSignalHandler screenReaderEnabledSignalHandler = null;
+        private static Interop.Accessibility.EnabledDisabledSignalHandler screenReaderEnabledSignalHandler;
 
-        private static Interop.Accessibility.EnabledDisabledSignalHandler screenReaderDisabledSignalHandler = null;
+        private static Interop.Accessibility.EnabledDisabledSignalHandler screenReaderDisabledSignalHandler;
 
         private static readonly IReadOnlyDictionary<string, SayFinishedState> sayFinishedStateDictionary = new Dictionary<string, SayFinishedState>
         {
index de78a9e4eb5b2e3d0a27036ea34ecf4f3226cee8..ea4aa2d48b6b55188d5e57d0641922c9c98ccba2 100755 (executable)
@@ -55,24 +55,24 @@ namespace Tizen.NUI
     /// <since_tizen> 3 </since_tizen>
     public class Animation : BaseHandle
     {
-        private static bool? disableAnimation = null;
+        private static bool? disableAnimation;
 
         private AnimationFinishedEventCallbackType animationFinishedEventCallback;
         private System.IntPtr finishedCallbackOfNative;
 
         private AnimationProgressReachedEventCallbackType animationProgressReachedEventCallback;
 
-        private string[] properties = null;
-        private string[] destValue = null;
-        private int[] startTime = null;
-        private int[] endTime = null;
+        private string[] properties;
+        private string[] destValue;
+        private int[] startTime;
+        private int[] endTime;
 
-        private List<string> propertyList = null;
-        private List<string> destValueList = null;
-        private List<int> startTimeList = null;
-        private List<int> endTimeList = null;
+        private List<string> propertyList;
+        private List<string> destValueList;
+        private List<int> startTimeList;
+        private List<int> endTimeList;
 
-        private List<System.Delegate> customAlphaFunctionDelegates = null;
+        private List<System.Delegate> customAlphaFunctionDelegates;
 
         /// <summary>
         /// Creates an initialized animation.<br />
index 8c0e9152923c73a4204e29ca83164caeaf13f887..61ab4706a2f5251dfab84a1d96cc3cbb085e099b 100755 (executable)
@@ -29,7 +29,7 @@ namespace Tizen.NUI
     /// <since_tizen> 9 </since_tizen>
     public class TransitionOptions : IDisposable
     {
-        private bool disposed = false;
+        private bool disposed;
 
         /// <summary>
         /// Initializes the TransitionOptions class.
@@ -46,7 +46,7 @@ namespace Tizen.NUI
         /// This is property for Page Transition.
         /// </summary>
         /// <since_tizen> 9 </since_tizen>
-        public string TransitionTag { set; get; } = null;
+        public string TransitionTag { set; get; }
 
         /// <summary>
         /// Property for Page transition.
@@ -54,7 +54,7 @@ namespace Tizen.NUI
         /// Default value is false
         /// </summary>
         /// <since_tizen> 9 </since_tizen>
-        public bool TransitionWithChild { set; get; } = false;
+        public bool TransitionWithChild { set; get; }
 
         /// <summary>
         /// Hidden API (Inhouse API).
index 878c20a89a24e4c6f7ba8f6844eb057e6713c61c..0bf98d82bfab07c793324cd5f1e21edfa6a54fbc 100755 (executable)
@@ -47,14 +47,14 @@ namespace Tizen.NUI
         /// <summary>
         /// The instance of ResourceManager.
         /// </summary>
-        private static System.Resources.ResourceManager resourceManager = null;
-        private static string currentLoadedXaml = null;
+        private static System.Resources.ResourceManager resourceManager;
+        private static string currentLoadedXaml;
 
         /// <summary>
         /// The border window
         /// </summary>
-        private bool borderEnabled = false;
-        private IBorderInterface borderInterface = null;
+        private bool borderEnabled;
+        private IBorderInterface borderInterface;
 
         private States currentState = States.Invalid;
 
index 37bc4528de0eaa0d285671d4ce6598307235594f..d69f0e0dc8c5aadf06e39e1ddb01f861da85fa08 100755 (executable)
@@ -26,7 +26,7 @@ namespace Tizen.NUI
     [EditorBrowsable(EditorBrowsableState.Never)]
     public class NUIFrameComponent : FrameComponent
     {
-        private bool defaultWindowSet = false;
+        private bool defaultWindowSet;
         internal NUIWindowInfo NUIWindowInfo
         {
             get;
index 98f26159071899fdf42432cb267b339eefc32c4e..844dc99a009edaa7216a7eb0e56168b777e3810b 100755 (executable)
@@ -26,7 +26,7 @@ namespace Tizen.NUI
     [EditorBrowsable(EditorBrowsableState.Never)]
     public class NUIWidgetComponent : WidgetComponent
     {
-        private bool defaultWindowSet = false;
+        private bool defaultWindowSet;
         internal NUIWindowProxy NUIWindowProxy
         {
             get;
index 6b357fc37e22b5cd4e5c48cf4f299c0df343cb4f..dccfabbe59470ce907c6f016e0eec97abb2b1e30 100644 (file)
@@ -28,7 +28,7 @@ namespace Tizen.NUI
     [EditorBrowsable(EditorBrowsableState.Never)]
     public class WindowData : Disposable
     {
-        private IBorderInterface borderInterface = null;
+        private IBorderInterface borderInterface;
 
         [EditorBrowsable(EditorBrowsableState.Never)]
         public WindowData() : this(Interop.WindowData.New(), true)
index a443685d4ffbe7efcce1ed9d18c1f4af43e4bc68..1fea92f9d85825ae1ee426c34a4d8891ed3a8662 100755 (executable)
@@ -27,7 +27,7 @@ namespace Tizen.NUI
     [EditorBrowsable(EditorBrowsableState.Never)]
     public class ApplicationTransitionManager : IDisposable
     {
-        private bool disposed = false;
+        private bool disposed;
         private FrameProvider frameProvider;
         private DefaultFrameBroker frameBroker;
         private Window mainWindow;
index d761a20ce6d0bc7a608186aea355c30227364abd..79659411fabc4db5cd3e04435115ce6c14102495 100755 (executable)
@@ -69,9 +69,9 @@ namespace Tizen.NUI.BaseComponents
         static readonly IStyleProperty IsEnabledProperty = new StyleProperty<View, bool>((v, o) => v.IsEnabled = o);
 
         private Dictionary<IStyleProperty, object> values = new Dictionary<IStyleProperty, object>();
-        private bool disposed = false;
+        private bool disposed;
 
-        private float? sizeDepth = null;
+        private float? sizeDepth;
 
         static ViewStyle() { }
 
index ddb1b7e38d03f61ca9041f3da2222a04cf6128eb..caa78a40a9e22b119a96ff9b77767fd8f57690a9 100755 (executable)
@@ -41,7 +41,7 @@ namespace Tizen.NUI
         /// </remarks>
         public delegate void ClipboardCallback(bool success, ClipEvent clipEvent);
 
-        internal bool hasClipboardDataReceived = false;
+        internal bool hasClipboardDataReceived;
         internal Dictionary<uint, ClipboardCallback> receivedCallbackDictionary = new Dictionary<uint, ClipboardCallback>();
 
         private Clipboard(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
index 5d42ca5a350dddc26b4ab433826b74ee71ceee4b..e141bccd6b7012e1b5a9db9f0fae2ddf7db59fb9 100755 (executable)
@@ -61,7 +61,7 @@ namespace Tizen.NUI
         private bool registerMe;
 
         //The flag to check who called Dispose(). (By User or DisposeQueue)
-        private bool isDisposeQueued = false;
+        private bool isDisposeQueued;
 
         /// <summary>
         /// Create an instance of BaseHandle.
index a67fc5eb59094ce815ac9394b6a1bac415233283..7f7dc712687d64faf4259d82b199b256ae18e8df 100755 (executable)
@@ -46,7 +46,7 @@ namespace Tizen.NUI
 
         internal BaseHandle InternalParent;
         private List<View> childViews = new List<View>();
-        private MergedStyle mergedStyle = null;
+        private MergedStyle mergedStyle;
         ResourceDictionary _resources;
         bool IResourcesProvider.IsResourcesCreated => _resources != null;
 
index 9be970142e08a0c6fbb10e806205f0493e48364c..262d2662d59cec73cb8f7e25a806bdae709d2fc7 100755 (executable)
@@ -122,7 +122,7 @@ namespace Tizen.NUI
         /// <since_tizen> Only used by Tizen.NUI.Components, will not be opened </since_tizen>
                [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
         public delegate void ExtentsChangedCallback(ushort start, ushort end, ushort top, ushort bottom);
-        private ExtentsChangedCallback callback = null;
+        private ExtentsChangedCallback callback;
 
         /// <summary>
         /// The Start extent.
index fa74390ade4efe0459c03ada9cd19ea6573d2b20..494acbc5588b5903daf084de2126894ef3f16343 100755 (executable)
@@ -25,7 +25,7 @@ namespace Tizen.NUI
     [EditorBrowsable(EditorBrowsableState.Never)]
     public partial class FrameUpdateCallbackInterface : Disposable
     {
-        private uint onUpdateCallbackVersion = 0u;
+        private uint onUpdateCallbackVersion;
 
         /// This will be public opened after ACR done. Before ACR, need to be hidden as inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
index e98a9b34040dd1792b1a7b42f16ccf0e99cc2a0c..d041d38ae5e68dfec1f023612102cd1f5e648e12 100755 (executable)
@@ -29,7 +29,7 @@ namespace Tizen.NUI
     public class Layer : Container
     {
         private Window window;
-        private int layoutCount = 0;
+        private int layoutCount;
 
         private EventHandler<VisibilityChangedEventArgs> visibilityChangedEventHandler;
         private VisibilityChangedEventCallbackType visibilityChangedEventCallback;
index b96a358e5d702efb21f8f8508443e198555240f3..919efbe96e6348ec5c42113b6203659821acd0e1 100755 (executable)
@@ -1799,7 +1799,7 @@ namespace Tizen.NUI
     /// </summary>
     internal struct FrameworkInformation
     {
-        public readonly static string ResourcePath = "/usr/share/dotnet.tizen/framework/res/";
+        public const string ResourcePath = "/usr/share/dotnet.tizen/framework/res/";
     }
 
     /// <summary>
index 774abc0f6aab573e20659afb13851ce5ae644f73..48df3d50488f9a666d451b7c53b275a3fab439b1 100755 (executable)
@@ -650,6 +650,6 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
-        private PositionChangedCallback callback = null;
+        private PositionChangedCallback callback;
     }
 }
index 90c6067283d661b94e231710507e22f6da420d9a..50d56b17912f8cddc3083977f4b22152c23a74f1 100755 (executable)
@@ -27,7 +27,7 @@ namespace Tizen.NUI
     [Tizen.NUI.Binding.TypeConverter(typeof(Position2DTypeConverter))]
     public class Position2D : Disposable, ICloneable
     {
-        private Position2DChangedCallback callback = null;
+        private Position2DChangedCallback callback;
 
         /// <summary>
         /// The constructor.
index 30c1dbc8d349ccf20a8ac67a478eeb8276e4538f..e14e3aeb93435ea3f8f53a310208f4c6731e37f2 100755 (executable)
@@ -86,7 +86,7 @@ namespace Tizen.NUI
         }
 
         internal delegate void RectangleChangedCallback(int x, int y, int width, int height);
-        private RectangleChangedCallback callback = null;
+        private RectangleChangedCallback callback;
 
         /// <summary>
         /// The x position of the rectangle.
index ad2e2cb87d69ea01450b712c5142bee936221498..8ffa5ab59494b145f0850b4f265be04e6f74ace6 100755 (executable)
@@ -77,7 +77,7 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
         internal delegate void RelativeVector4ChangedCallback(float x, float y, float z, float w);
-        private RelativeVector4ChangedCallback callback = null;
+        private RelativeVector4ChangedCallback callback;
 
         /// <summary>
         /// The x component.
index a7ee9d8987101926f70e3033e4fa40b8ef0d38d4..a619ecbb0b178b5c774db0a65fbc19a854bd3b07 100755 (executable)
@@ -547,6 +547,6 @@ namespace Tizen.NUI
             depth = d;
         }
 
-        private SizeChangedCallback callback = null;
+        private SizeChangedCallback callback;
     }
 }
index 266552657e3a5fd653a21d62535b94991c4cd43c..2f8297a70112f4fc54cc1016e91afc070d306d0c 100755 (executable)
@@ -28,7 +28,7 @@ namespace Tizen.NUI
     public class Size2D : Disposable, ICloneable
     {
 
-        private Size2DChangedCallback callback = null;
+        private Size2DChangedCallback callback;
 
         /// <summary>
         /// The constructor.
index 2d3067a2ce3d873fe3ac9d98f8e8ab034c808886..23d8a71d21d708ce6f1e49b5c3259f01c51ea314 100755 (executable)
@@ -115,7 +115,7 @@ namespace Tizen.NUI
         }
 
         internal delegate void Vector2ChangedCallback(float x, float y);
-        private Vector2ChangedCallback callback = null;
+        private Vector2ChangedCallback callback;
 
         /// <summary>
         /// Returns a Vector2 instance where both the x and y components are set to 1.0f.
index 3fae030487e0f551782aa8a76fcb279bb2fbf345..baa2f08a8b0bce720f41f0eb81e20be9f57e9b27 100755 (executable)
@@ -103,7 +103,7 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
         internal delegate void Vector3ChangedCallback(float x, float y, float z);
-        private Vector3ChangedCallback callback = null;
+        private Vector3ChangedCallback callback;
 
         /// <summary>
         /// Returns a Vector2 instance where both the x and y components are set to 1.0f.
index bbb7deb49953b8f1fdd2f64cbf0777fca819c166..8e8556421d2fcca98d8419b4422023ac91cd75d5 100755 (executable)
@@ -101,7 +101,7 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
         internal delegate void Vector4ChangedCallback(float x, float y, float z, float w);
-        private Vector4ChangedCallback callback = null;
+        private Vector4ChangedCallback callback;
 
         /// <summary>
         /// Returns a Vector2 instance where both the x and y components are set to 1.0f.
index 2ae7ce92af7fb4f649f9ead092e380ec05118d59..a30938c9167304807b701e2d407899a68384791f 100755 (executable)
@@ -30,7 +30,7 @@ namespace Tizen.NUI
     {
         private const int addThreshold = 1000; // Experimetal constant
         private const int listLengthThreshold = 1000; // Experimetal constant
-        private int cleanUpAddCount = 0;
+        private int cleanUpAddCount;
         private List<WeakHandler<T>> handlers = new List<WeakHandler<T>>();
 
         /// <summary>
index 02f51201c8506ea7e6cf4b11661f457404795fc7..23f712c0d38085249fd67f817aa54ab371824848 100755 (executable)
@@ -192,7 +192,7 @@ namespace Tizen.NUI
         /// <summary>
         /// ViewRegistry is a singleton.
         /// </summary>
-        private static CustomViewRegistry instance = null;
+        private static CustomViewRegistry instance;
 
         private CreateControlDelegate createCallback;
         private SetPropertyDelegate setPropertyCallback;
index 64192d4fd55a47cde96951f529bba16a3ca30766..7294df5f5da1388dc26453615aaf78d65e0035c6 100755 (executable)
@@ -55,8 +55,8 @@ namespace Tizen.NUI
         private Window mDragWindow;
         private int shadowWidth;
         private int shadowHeight;
-        private int dragWindowOffsetX = 0;
-        private int dragWindowOffsetY = 0;
+        private int dragWindowOffsetX;
+        private int dragWindowOffsetY;
 
         private const int MinDragWindowWidth = 100;
         private const int MinDragWindowHeight = 100;
index 9d5f0a27b43bd25567669f9eaa2507a1dc8db086..5490711cc5dc66c37b2fec404cb8830295b192aa 100644 (file)
@@ -35,7 +35,7 @@ namespace Tizen.NUI
     [EditorBrowsable(EditorBrowsableState.Never)]
     public class EncodedImageBuffer : BaseHandle
     {
-        private VectorUnsignedChar mCachedBuffer = null; // cached encoded raw buffer
+        private VectorUnsignedChar mCachedBuffer; // cached encoded raw buffer
 
         /// <summary>
         /// The list of type of encoded image buffer.
index 0f1c5d0c8c88613f111151ec3fb1bd99b39df453..7169673c520bc631bea49fb2d4a44766c78e6556 100755 (executable)
@@ -75,8 +75,8 @@ namespace Tizen.NUI
         [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
         private delegate void FocusedViewEnterKeyEventCallback2(IntPtr view);
 
-        private View internalFocusIndicator = null;
-        private View nullFocusIndicator = null;
+        private View internalFocusIndicator;
+        private View nullFocusIndicator;
 
         /// <summary>
         /// PreFocusChange will be triggered before the focus is going to be changed.<br />
index 8caf47b66befaf30a966093865a9fee8b7f9fda2..9ae6c0c418fd7c3ae1b0e06ccbcd8b9baf3e58ef 100755 (executable)
@@ -22,10 +22,10 @@ namespace Tizen.NUI
     /// <since_tizen> 3 </since_tizen>
     public class InputMethod
     {
-        private PanelLayoutType? panelLayout = null;
-        private ActionButtonTitleType? actionButton = null;
-        private AutoCapitalType? autoCapital = null;
-        private int? variation = null;
+        private PanelLayoutType? panelLayout;
+        private ActionButtonTitleType? actionButton;
+        private AutoCapitalType? autoCapital;
+        private int? variation;
 
         /// <summary>
         /// The default constructor of InputMethod.
index 288214552849bdd541033529df9663a245f7bde4..2bdb2305ad2779d4a5331871567e1748f6e0cdbe 100755 (executable)
@@ -27,7 +27,7 @@ namespace Tizen.NUI
     /// </summary>
     public class KeyValue : IDisposable
     {
-        private bool disposed = false;
+        private bool disposed;
         /// <summary>
         /// Int key.
         /// </summary>
@@ -52,9 +52,9 @@ namespace Tizen.NUI
         [SuppressMessage("Microsoft.Design", "CA1051:Do not declare visible instance fields")]
         public PropertyValue TrueValue = null;
 
-        private string key = null;
-        private object originalValue = null;
-        private object originalKey = null;
+        private string key;
+        private object originalValue;
+        private object originalKey;
 
         /// <summary>
         /// The default Constructor of KeyValue class.
index 755aaff0eabd343bd9202f7f1fac3cc47ecf524b..b6cc92ff7ba3c0a30b93cae9a2aa7092a95a157e 100755 (executable)
@@ -89,18 +89,18 @@ namespace Tizen.NUI
         [EditorBrowsable(EditorBrowsableState.Never)]
         public static readonly BindableProperty FlexGrowProperty = null;
 
-        private static Dictionary<View, AlignmentType> flexAlignmentSelfMap = null;
-        private static Dictionary<View, float> flexAspectRatioMap = null;
-        private static Dictionary<View, float> flexBasisMap = null;
-        private static Dictionary<View, float> flexShrinkMap = null;
-        private static Dictionary<View, float> flexGrowMap = null;
+        private static Dictionary<View, AlignmentType> flexAlignmentSelfMap;
+        private static Dictionary<View, float> flexAspectRatioMap;
+        private static Dictionary<View, float> flexBasisMap;
+        private static Dictionary<View, float> flexShrinkMap;
+        private static Dictionary<View, float> flexGrowMap;
 
-        private Dictionary<View, HandleRef> childHandleRefMap = null;
+        private Dictionary<View, HandleRef> childHandleRefMap;
 
         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
         private bool swigCMemOwn;
         private bool disposed;
-        private bool isDisposeQueued = false;
+        private bool isDisposeQueued;
 
         private MeasureSpecification parentMeasureSpecificationWidth;
         private MeasureSpecification parentMeasureSpecificationHeight;
index ca9fe24977f2c7e116a09dd30274e680889372ac..320f017f084cf3a2aa76ccba8dbbdad48c16d196 100755 (executable)
@@ -81,20 +81,20 @@ namespace Tizen.NUI
         [EditorBrowsable(EditorBrowsableState.Never)]
         public const int AutoRow = int.MinValue;
 
-        private static Dictionary<View, int> columnMap = null;
-        private static Dictionary<View, int> columnSpanMap = null;
-        private static Dictionary<View, int> rowMap = null;
-        private static Dictionary<View, int> rowSpanMap = null;
-        private static Dictionary<View, StretchFlags> horizontalStretchMap = null;
-        private static Dictionary<View, StretchFlags> verticalStretchMap = null;
-        private static Dictionary<View, Alignment> horizontalAlignmentMap  = null;
-        private static Dictionary<View, Alignment> verticalAlignmentMap = null;
+        private static Dictionary<View, int> columnMap;
+        private static Dictionary<View, int> columnSpanMap;
+        private static Dictionary<View, int> rowMap;
+        private static Dictionary<View, int> rowSpanMap;
+        private static Dictionary<View, StretchFlags> horizontalStretchMap;
+        private static Dictionary<View, StretchFlags> verticalStretchMap;
+        private static Dictionary<View, Alignment> horizontalAlignmentMap;
+        private static Dictionary<View, Alignment> verticalAlignmentMap;
 
         private Orientation gridOrientation = Orientation.Horizontal;
         private int columns = 1;
         private int rows = 1;
-        private float columnSpacing = 0;
-        private float rowSpacing = 0;
+        private float columnSpacing;
+        private float rowSpacing;
 
         /// <summary>
         /// Enumeration for the direction in which the content is laid out
index 193d079ca1a4c01c554b5acb20a14ec3867d8fa5..6ed2e8fa5c605573d3bcfb18ed8196b0194203e2 100755 (executable)
@@ -39,7 +39,7 @@ namespace Tizen.NUI
     /// </summary>
     public class LayoutItem : IDisposable
     {
-        private bool disposed = false;
+        private bool disposed;
         private MeasureSpecification oldWidthMeasureSpec; // Store measure specification to compare against later
         private MeasureSpecification oldHeightMeasureSpec; // Store measure specification to compare against later
 
@@ -52,7 +52,7 @@ namespace Tizen.NUI
         private Extents padding;
         private Extents margin;
 
-        private bool parentReplacement = false;
+        private bool parentReplacement;
         private bool setPositionByLayout = true;
 
         /// <summary>
index aeba96c4e0c7221b5f277e74cab1ffc36b6d84a7..df32ce4dfea38dc39eacce5870f96e90a1aeb12e 100755 (executable)
@@ -105,7 +105,7 @@ namespace Tizen.NUI
     /// <since_tizen> 6 </since_tizen>
     public class TransitionComponents : IDisposable
     {
-        private bool disposed = false;
+        private bool disposed;
         /// <summary>
         /// TransitionComponents default constructor.
         /// </summary>
index c14a84b8ec64ae998fdf6e78e4f422ee47425684..f333042a2315090461c12b1e9dcc1dfd97eb6d5c 100755 (executable)
@@ -197,7 +197,7 @@ namespace Tizen.NUI
         /// <since_tizen> 9 </since_tizen>
         public VerticalAlignment VerticalAlignment { get; set; } = VerticalAlignment.Top;
 
-        private float totalLength = 0.0f;
+        private float totalLength;
         private Size2D cellPadding = new Size2D(0, 0);
         private Orientation linearOrientation = Orientation.Horizontal;
 
index a3766aa41c0dbc3aab06c73598298401b91cd4d8..55617c81add33f4ec4a7c0f3b2df48170434e12a 100755 (executable)
@@ -99,18 +99,18 @@ namespace Tizen.NUI
         [EditorBrowsable(EditorBrowsableState.Never)]
         public static readonly BindableProperty FillVerticalProperty = null;
 
-        private static Dictionary<View, View> leftTargetMap = null;
-        private static Dictionary<View, View> rightTargetMap = null;
-        private static Dictionary<View, View> topTargetMap = null;
-        private static Dictionary<View, View> bottomTargetMap = null;
-        private static Dictionary<View, float> leftRelativeOffsetMap = null;
-        private static Dictionary<View, float> rightRelativeOffsetMap = null;
-        private static Dictionary<View, float> topRelativeOffsetMap = null;
-        private static Dictionary<View, float> bottomRelativeOffsetMap = null;
-        private static Dictionary<View, Alignment> horizontalAlignmentMap = null;
-        private static Dictionary<View, Alignment> verticalAlignmentMap = null;
-        private static Dictionary<View, bool> fillHorizontalMap = null;
-        private static Dictionary<View, bool> fillVerticalMap = null;
+        private static Dictionary<View, View> leftTargetMap;
+        private static Dictionary<View, View> rightTargetMap;
+        private static Dictionary<View, View> topTargetMap;
+        private static Dictionary<View, View> bottomTargetMap;
+        private static Dictionary<View, float> leftRelativeOffsetMap;
+        private static Dictionary<View, float> rightRelativeOffsetMap;
+        private static Dictionary<View, float> topRelativeOffsetMap;
+        private static Dictionary<View, float> bottomRelativeOffsetMap;
+        private static Dictionary<View, Alignment> horizontalAlignmentMap;
+        private static Dictionary<View, Alignment> verticalAlignmentMap;
+        private static Dictionary<View, bool> fillHorizontalMap;
+        private static Dictionary<View, bool> fillVerticalMap;
 
         static RelativeLayout()
         {
index 006beeba7275af1a9baf77f232d9437b6ab7290e..6dbe0b47d49789461f93b88b1a5505a6d64a3d2f 100644 (file)
@@ -367,7 +367,7 @@ namespace Tizen.NUI.ParticleSystem
 
         // Internal proxy object to be used on the update thread
         internal ParticleEmitterProxy EmitterProxy => mProxy;
-        private ParticleEmitterProxy mProxy = null;
+        private ParticleEmitterProxy mProxy;
     }
     
     /// <summary>
index d835c2dd8701d85c6ad990051bb1343844f73e95..2a36f9479f3153c155048e2ec87bcc1bf93cbaad 100644 (file)
@@ -169,7 +169,7 @@ namespace Tizen.NUI.ParticleSystem
         }
         
         private static Interop.ParticleModifier.ParticleModifierUpdateInvokerType mOnUpdateInvoker = OnUpdateInvoker;
-        private ParticleModifierInterface mInterface = null;
+        private ParticleModifierInterface mInterface;
         private static IntPtr gRefObjectPtr;
     }
 }
index 2257ea0b2b6c4dae4bcee52e0f9465a8e7767311..92beffca893c33305dadf6039a3021909ff9b4f1 100644 (file)
@@ -209,7 +209,7 @@ namespace Tizen.NUI.ParticleSystem
         // private fields
         private static Interop.ParticleSource.ParticleSourceInitInvokerType mOnInitInvoker = OnInitInvoker;
         private static Interop.ParticleSource.ParticleSourceUpdateInvokerType mOnUpdateInvoker = OnUpdateInvoker;
-        private ParticleSourceInterface mInterface = null;
+        private ParticleSourceInterface mInterface;
         private static IntPtr gRefObjectPtr;
     }
 }
index 5139c5b3253790769575bde3bcd50998d4c5f123..2b1f0050f710aec26a0fc405131f96fb08b7ac64 100755 (executable)
@@ -41,7 +41,7 @@ namespace Tizen.NUI
     public class Theme : BindableObject, IResourcesProvider
     {
         private readonly Dictionary<string, ViewStyle> map;
-        private IEnumerable<KeyValuePair<string, string>> changedResources = null;
+        private IEnumerable<KeyValuePair<string, string>> changedResources;
         private string baseTheme;
         ResourceDictionary resources;
 
@@ -105,7 +105,7 @@ namespace Tizen.NUI
         /// The version of the Theme.
         /// </summary>
         /// <since_tizen> 9 </since_tizen>
-        public string Version { get; set; } = null;
+        public string Version { get; set; }
 
         /// <summary>
         /// The url of small broken image
@@ -220,7 +220,7 @@ namespace Tizen.NUI
 
         internal int Count => map.Count;
 
-        internal int PackageCount { get; set; } = 0;
+        internal int PackageCount { get; set; }
 
         /// <summary>
         /// Get an enumerator of the theme.
index bbfa74b44ae875254123cb66fb9738e915c77d15..1a826aa2becd993ff06750aeb6c375dfc11cab68 100755 (executable)
@@ -59,9 +59,9 @@ namespace Tizen.NUI
         private static Theme themeForInitialize; // baseTheme + platformTheme + userTheme. It is used when the component is created.
         private static readonly List<Theme> cachedPlatformThemes = new List<Theme>(); // Themes provided by framework.
         private static readonly List<string> packages = new List<string>();// This is to store base theme creators by packages.
-        private static bool platformThemeEnabled = false;
-        private static bool isInEventProgress = false;
-        private static bool updateThemeDirty = false;
+        private static bool platformThemeEnabled;
+        private static bool isInEventProgress;
+        private static bool updateThemeDirty;
 
         static ThemeManager()
         {
@@ -171,7 +171,7 @@ namespace Tizen.NUI
             }
         }
 
-        internal static bool ApplicationThemeChangeSensitive { get; set; } = false;
+        internal static bool ApplicationThemeChangeSensitive { get; set; }
 
 #if PROFILE_TV
         internal const bool InitialThemeDisabled = true;
index b307e4a257bac06afa538d37c29bfa02c35fe259..2b43967b641cd1205ab0880cb3b3a6adbf2dc092 100644 (file)
@@ -27,7 +27,7 @@ namespace Tizen.NUI
     /// <since_tizen> 9 </since_tizen>
     public class FadeTransition : TransitionBase
     {
-        private float opacity = 0.0f;
+        private float opacity;
 
         /// <summary>
         /// Create a FadeTransition for the View pair.
index 3ed937787a3dd88351b912837dc05546af6db2e7..0628e66cff38726be8da58e485257ab4b00e0e23 100644 (file)
@@ -31,8 +31,8 @@ namespace Tizen.NUI
     /// <since_tizen> 9 </since_tizen>
     public class TransitionBase : Disposable
     {
-        private AlphaFunction alphaFunction = null;
-        private TimePeriod timePeriod = null;
+        private AlphaFunction alphaFunction;
+        private TimePeriod timePeriod;
 
         /// <summary>
         /// Default constructor to create a TransitionBase
index daac3e480c420931966764946404e065f57e3642..3b490120cb4586dc0c9c5c201c9704c201366781 100644 (file)
@@ -30,7 +30,7 @@ namespace Tizen.NUI
     [EditorBrowsable(EditorBrowsableState.Never)]
     public class TransitionGroup : TransitionBase
     {
-        private List<TransitionBase> transitionList = null;
+        private List<TransitionBase> transitionList;
 
         /// <summary>
         /// Create a FadeTransition for the View pair.
index 453889a6d050650873c8ae5e667e559eccdcc044..67e0fa0276549779f8c1ee03f66c5c0e125760c8 100644 (file)
@@ -48,8 +48,8 @@ namespace Tizen.NUI.Utility
 
         private const int mHistorySize = 20;
         private uint mMaximumTime;
-        private uint mLastEventTime = 0;
-        private float mLastPosition = 0;
+        private uint mLastEventTime;
+        private float mLastPosition;
         private uint mAssumePointerStoppedTime = 40; // 40ms
         protected SortedDictionary<int, List<Movement>> mMovements;
 
index 9c2ea2ae1ffc18a0e5aa255cfd429d2e28d926c8..77003003c8cc1ada4f4dbaee687c292ffffb1089 100755 (executable)
@@ -35,7 +35,7 @@ namespace Tizen.NUI
     /// <since_tizen> 3 </since_tizen>
     public class Timer : BaseHandle
     {
-        private bool played = false;
+        private bool played;
         private EventHandlerWithReturnType<object, TickEventArgs, bool> timerTickEventHandler;
         private TickCallbackDelegate timerTickCallbackDelegate;
 
index 9e8092503fa817f91e32736bd5f0b237d41b3787..1f756261d842ad986d6368302abf0efdb9a7dbd6 100644 (file)
@@ -51,8 +51,8 @@ namespace Tizen.NUI.Utility
     {
         private struct Axis
         {
-            public static int X = 0;
-            public static int Y = 1;
+            public const int X = 0;
+            public const int Y = 1;
         }
 
         private struct ComputedVelocity
@@ -81,8 +81,8 @@ namespace Tizen.NUI.Utility
             }
         }
 
-        private int mPointerCount = 0;
-        private bool mIsComputed = false;
+        private int mPointerCount;
+        private bool mIsComputed;
         private ComputedVelocity mComputedVelocity;
         private VelocityTrackerStrategy[] mConfiguredStrategies;
 
index cc91769be1dc3baae42e9e7f573255d035066896..58cfb623e6d049c6198696ca67de7b366cfd709a 100755 (executable)
@@ -24,7 +24,7 @@ namespace Tizen.NUI
     /// </summary>
     internal class BackgroundExtraData : IDisposable
     {
-        private bool disposed = false;
+        private bool disposed;
         internal BackgroundExtraData()
         {
             BorderlineColor = Tizen.NUI.Color.Black;
index 6676553abb26ed58071e7b2485e55859a435f19b..ee65a5784d1b7412fdd83813be9495508abd5d63 100755 (executable)
@@ -60,12 +60,12 @@ namespace Tizen.NUI.BaseComponents
         /// <summary>
         /// Gets or sets the minimum width of the view.
         /// </summary>
-        public float MinimumWidth { get; set; } = 0;
+        public float MinimumWidth { get; set; }
 
         /// <summary>
         /// Gets or sets the minimum height of the view.
         /// </summary>
-        public float MinimumHeight { get; set; } = 0;
+        public float MinimumHeight { get; set; }
 
         /// <summary>
         /// Gets or sets the maximum width of the view.
index 53364fcb7a9df269145ef453e250cef8d8292fd9..fa7f13f948b2abf92283cfe49601922f271006c8 100755 (executable)
@@ -26,8 +26,8 @@ namespace Tizen.NUI
     [EditorBrowsable(EditorBrowsableState.Never)]
     public class TextShadow : ICloneable, IDisposable
     {
-        private bool disposed = false;
-        private readonly PropertyMap propertyMap = null;
+        private bool disposed;
+        private readonly PropertyMap propertyMap;
 
         internal delegate void PropertyChangedCallback(TextShadow instance);
 
index 70c60002fa68f2d71ed0429c8c823725a8939233..12fe5c748259b17a4eb642baf3ff5a8f51348ecf 100755 (executable)
@@ -24,11 +24,11 @@ namespace Tizen.NUI
     /// <since_tizen> 3 </since_tizen>
     public class AnimatedImageVisual : VisualMap
     {
-        private List<string> urls = null;
-        private int? batchSize = null;
-        private int? cacheSize = null;
-        private float? frameDelay = null;
-        private float? loopCount = null;
+        private List<string> urls;
+        private int? batchSize;
+        private int? cacheSize;
+        private float? frameDelay;
+        private float? loopCount;
 
         /// <summary>
         /// Default constructor of AnimatedImageVisual class.
index 89dc308e7d9a53b830bf946e6b0601ec22ff4c41..2ba84685b9b1a6c0a5d32b753276f320bd7958f3 100755 (executable)
@@ -23,9 +23,9 @@ namespace Tizen.NUI
     /// <since_tizen> 3 </since_tizen>
     public class BorderVisual : VisualMap
     {
-        private Color color = null;
-        private float? size = null;
-        private bool? antiAliasing = null;
+        private Color color;
+        private float? size;
+        private bool? antiAliasing;
 
         /// <summary>
         /// Default constructor of BorderVisual class.
index 3f8cbf9efe7e98afe772028fd8860ddb2f7f54e9..8ccaefe843f2f975999d9061a70a34bfbac48d4f 100755 (executable)
@@ -23,7 +23,7 @@ namespace Tizen.NUI
     /// <since_tizen> 3 </since_tizen>
     public class ColorVisual : VisualMap
     {
-        private Color mixColorForColorVisual = null;
+        private Color mixColorForColorVisual;
         private bool? renderIfTransparent = false;
 
         /// <summary>
index 64bde54dea708bcbc3942e4a5c027a3867bb77f1..1eaaf2c175c086802f82c29bed666d6fd7782140 100755 (executable)
@@ -23,14 +23,14 @@ namespace Tizen.NUI
     /// <since_tizen> 3 </since_tizen>
     public class GradientVisual : VisualMap
     {
-        private Vector2 _startPosition = null;
-        private Vector2 _endPosition = null;
-        private Vector2 _center = null;
-        private float? _radius = null;
-        private PropertyArray _stopOffset = null;
-        private PropertyArray _stopColor = null;
-        private GradientVisualUnitsType? _units = null;
-        private GradientVisualSpreadMethodType? _spreadMethod = null;
+        private Vector2 _startPosition;
+        private Vector2 _endPosition;
+        private Vector2 _center;
+        private float? _radius;
+        private PropertyArray _stopOffset;
+        private PropertyArray _stopColor;
+        private GradientVisualUnitsType? _units;
+        private GradientVisualSpreadMethodType? _spreadMethod;
 
         /// <summary>
         /// Default constructor of GradientVisual.
index cb31d71ecba3a4cdc993b7659430e619df4064d1..334fd8d938a1d7fce8b0ad2ea3c2b93f1876f4fe 100755 (executable)
@@ -23,23 +23,23 @@ namespace Tizen.NUI
     /// <since_tizen> 3 </since_tizen>
     public class ImageVisual : VisualMap
     {
-        private string url = null;
-        private string alphaMaskUrl = null;
-        private string auxiliaryImageUrl = null;
-        private FittingModeType? fittingMode = null;
-        private SamplingModeType? samplingMode = null;
-        private int? desiredWidth = null;
-        private int? desiredHeight = null;
+        private string url;
+        private string alphaMaskUrl;
+        private string auxiliaryImageUrl;
+        private FittingModeType? fittingMode;
+        private SamplingModeType? samplingMode;
+        private int? desiredWidth;
+        private int? desiredHeight;
         private bool? synchronousLoading = false;
-        private bool? borderOnly = null;
-        private Vector4 pixelArea = null;
-        private WrapModeType? wrapModeU = null;
-        private WrapModeType? wrapModeV = null;
-        private float? auxiliaryImageAlpha = null;
-        private float? maskContentScale = null;
-        private bool? cropToMask = null;
-        private ReleasePolicyType? releasePolicy = null;
-        private LoadPolicyType? loadPolicy = null;
+        private bool? borderOnly;
+        private Vector4 pixelArea;
+        private WrapModeType? wrapModeU;
+        private WrapModeType? wrapModeV;
+        private float? auxiliaryImageAlpha;
+        private float? maskContentScale;
+        private bool? cropToMask;
+        private ReleasePolicyType? releasePolicy;
+        private LoadPolicyType? loadPolicy;
         private bool? orientationCorrection = true;
         private bool? atlasing = false;
 
index b4d42375c8c681f1bb39d0d8422c3e70c68f59ea..f818a8734d642714e0d295b3c6aeeefe6fb2a6f9 100755 (executable)
@@ -25,13 +25,13 @@ namespace Tizen.NUI
     /// <since_tizen> 3 </since_tizen>
     public class MeshVisual : VisualMap
     {
-        private string objectURL = null;
-        private string materialURL = null;
-        private string texturesPath = null;
-        private MeshVisualShadingModeValue? shadingMode = null;
-        private bool? useMipmapping = null;
-        private bool? useSoftNormals = null;
-        private Vector3 lightPosition = null;
+        private string objectURL;
+        private string materialURL;
+        private string texturesPath;
+        private MeshVisualShadingModeValue? shadingMode;
+        private bool? useMipmapping;
+        private bool? useSoftNormals;
+        private Vector3 lightPosition;
 
         /// <summary>
         /// Default constructor of MeshVisual class.
index 2f517a37f58d65a50985ca70b2b6831a983c0239..5d4c6acf8429919b766aaaee5106e08651b1f58a 100755 (executable)
@@ -23,9 +23,9 @@ namespace Tizen.NUI
     /// <since_tizen> 3 </since_tizen>
     public class NPatchVisual : VisualMap
     {
-        private string url = null;
-        private bool? borderOnly = null;
-        private Rectangle border = null;
+        private string url;
+        private bool? borderOnly;
+        private Rectangle border;
 
         /// <summary>
         /// Default constructor of NPatchVisual class.
index dceb21320d0b0e058f074770e30d955337fdd523..4ceef6bdcd400f292c84566d6b8eb7fe5009d451 100755 (executable)
@@ -23,18 +23,18 @@ namespace Tizen.NUI
     /// <since_tizen> 3 </since_tizen>
     public class PrimitiveVisual : VisualMap
     {
-        private PrimitiveVisualShapeType? _shape = null;
-        private Color _mixColorForPrimitiveVisual = null;
-        private int? _slices = null;
-        private int? _stacks = null;
-        private float? _scaleTopRadius = null;
-        private float? _scaleBottomRadius = null;
-        private float? _scaleHeight = null;
-        private float? _scaleRadius = null;
-        private Vector3 _scaleDimensions = null;
-        private float? _bevelPercentage = null;
-        private float? _bevelSmoothness = null;
-        private Vector3 _lightPosition = null;
+        private PrimitiveVisualShapeType? _shape;
+        private Color _mixColorForPrimitiveVisual;
+        private int? _slices;
+        private int? _stacks;
+        private float? _scaleTopRadius;
+        private float? _scaleBottomRadius;
+        private float? _scaleHeight;
+        private float? _scaleRadius;
+        private Vector3 _scaleDimensions;
+        private float? _bevelPercentage;
+        private float? _bevelSmoothness;
+        private Vector3 _lightPosition;
 
         /// <summary>
         /// Default constructor of PrimitiveVisual class.
index 5dd8f55a7a0548935966a0a6975b2f38b737518f..819686ca0d95811b538b4615c18f83aeefd1380e 100755 (executable)
@@ -23,7 +23,7 @@ namespace Tizen.NUI
     /// <since_tizen> 3 </since_tizen>
     public class SVGVisual : VisualMap
     {
-        private string url = null;
+        private string url;
 
         /// <summary>
         /// Default constructor of SVGVisual class.
index 667a3e83b2af38380d4e498c5dcf2901b12b8bbb..d3997b39a7f597df1fd2135cc53583d2fb2af5e7 100755 (executable)
@@ -24,19 +24,19 @@ namespace Tizen.NUI
     public class TextVisual : VisualMap
     {
         static private float defaultPointSize = 18;
-        private string text = null;
-        private string fontFamily = null;
-        private PropertyMap fontStyle = null;
+        private string text;
+        private string fontFamily;
+        private PropertyMap fontStyle;
         private float pointSize = defaultPointSize;
-        private bool? multiLine = null;
-        private string horizontalAlignment = null;
-        private string verticalAlignment = null;
-        private Color textColor = null;
-        private bool? enableMarkup = null;
-        private PropertyMap shadow = null;
-        private PropertyMap underline = null;
-        private PropertyMap outline = null;
-        private PropertyMap background = null;
+        private bool? multiLine;
+        private string horizontalAlignment;
+        private string verticalAlignment;
+        private Color textColor;
+        private bool? enableMarkup;
+        private PropertyMap shadow;
+        private PropertyMap underline;
+        private PropertyMap outline;
+        private PropertyMap background;
 
         /// <summary>
         /// Default constructor of TextVisual class.
index 0bd4c14654dcc0f19495add8ce4aa96c5cd2e23c..2d193767988cd756a2c3deed961c1583bb54c85d 100755 (executable)
@@ -25,12 +25,12 @@ namespace Tizen.NUI
     /// <since_tizen> 3 </since_tizen>
     public class VisualAnimator : VisualMap
     {
-        private string alphaFunction = null;
-        private int startTime = 0;
-        private int endTime = 0;
-        private string target = null;
-        private string propertyIndex = null;
-        private object destinationValue = null;
+        private string alphaFunction;
+        private int startTime;
+        private int endTime;
+        private string target;
+        private string propertyIndex;
+        private object destinationValue;
 
         /// <summary>
         /// Create VisualAnimator object.
index 02c69b0fd045976f2d35fc7e61405afa6ee3ad5e..da1cbdd88a5e7bd6e341fd39347245c605b80d07 100755 (executable)
@@ -26,7 +26,7 @@ namespace Tizen.NUI
     /// <since_tizen> 3 </since_tizen>
     public class VisualMap : IDisposable
     {
-        private bool disposed = false;
+        private bool disposed;
         /// <summary>
         /// outputVisualMap.
         /// </summary>
@@ -76,11 +76,11 @@ namespace Tizen.NUI
         [System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1051:Do not declare visible instance fields", Justification = "<Pending>")]
         protected VisualFittingModeType? _visualFittingMode = null;
 
-        private Vector4 cornerRadius = null;
-        private VisualTransformPolicyType? cornerRadiusPolicy = null;
-        private float? borderlineWidth = null;
-        private Color borderlineColor = null;
-        private float? borderlineOffset = null;
+        private Vector4 cornerRadius;
+        private VisualTransformPolicyType? cornerRadiusPolicy;
+        private float? borderlineWidth;
+        private Color borderlineColor;
+        private float? borderlineOffset;
 
         /// <summary>
         /// The map for visual.
@@ -90,16 +90,16 @@ namespace Tizen.NUI
         [System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1051:Do not declare visible instance fields", Justification = "<Pending>")]
         protected PropertyMap _commonlyUsedMap = null;
 
-        private Vector2 visualSize = null;
-        private Vector2 visualOffset = null;
-        private Vector2 visualOffsetPolicy = null;
-        private Vector2 visualSizePolicy = null;
-        private Visual.AlignType? visualOrigin = null;
-        private Visual.AlignType? visualAnchorPoint = null;
+        private Vector2 visualSize;
+        private Vector2 visualOffset;
+        private Vector2 visualOffsetPolicy;
+        private Vector2 visualSizePolicy;
+        private Visual.AlignType? visualOrigin;
+        private Visual.AlignType? visualAnchorPoint;
 
-        private PropertyMap visualTransformMap = null;
+        private PropertyMap visualTransformMap;
 
-        private int? depthIndex = null;
+        private int? depthIndex;
 
         /// <summary>
         /// Constructor.
@@ -717,7 +717,7 @@ namespace Tizen.NUI
         /// Suppress UpdateVisual() to update properties to Parent.
         /// If it is set to true, UpdateVisual() is ignored unless it is called with force.
         /// </summary>
-        internal bool SuppressUpdateVisual { get; set; } = false;
+        internal bool SuppressUpdateVisual { get; set; }
 
         internal void UpdateVisual(bool force = false)
         {
index c6b53e9f57e1f3ab923ff810401964f28545b01c..cee81c7d3dfe90d42499a83c9a5845f2680fcb96 100644 (file)
@@ -34,10 +34,10 @@ namespace Tizen.NUI.Visuals
     public class AdvancedTextVisual : Visuals.TextVisual
     {
         #region Internal
-        private string textLabelSid = null;
+        private string textLabelSid;
 
         private static Tizen.NUI.SystemLocaleLanguageChanged systemLocaleLanguageChanged = new Tizen.NUI.SystemLocaleLanguageChanged();
-        private bool hasSystemLanguageChanged = false;
+        private bool hasSystemLanguageChanged;
         #endregion
 
         #region Constructor
index bf1d6610e0786df676e0606c6676cf0b8393a2db..ee1dda044b22fad3dbe81a5e330f83126bbe91b2 100644 (file)
@@ -34,7 +34,7 @@ namespace Tizen.NUI.Visuals
 
         internal static readonly int ActionJumpTo = Tizen.NUI.BaseComponents.AnimatedImageView.ActionJumpTo;
 
-        private List<string> resourceUrls = null;
+        private List<string> resourceUrls;
         #endregion
 
         #region Constructor
index 42becaef63dfb13151c7604f85856dbbaa6badd2..3a2b656ace89f3ddb6b7739c8ee2a4210646a5e2 100644 (file)
@@ -28,9 +28,9 @@ namespace Tizen.NUI.Visuals
     {
         #region Internal And Private
         internal static readonly int ActionReload = Tizen.NUI.BaseComponents.ImageView.ActionReload;
-        internal bool isResourceUrlValid = false;
+        internal bool isResourceUrlValid;
 
-        private PropertyMap temperalStoredPropertyMap = null; // To store property map when resource url is not valid.
+        private PropertyMap temperalStoredPropertyMap; // To store property map when resource url is not valid.
         #endregion
 
         /// <summary>
index c3ae31941a5c0034b7059b39a5b234636f1efe6c..24d91ae7c8cda5619b287b2c4bd2ae8f9f53eebe 100644 (file)
@@ -39,18 +39,18 @@ namespace Tizen.NUI.Visuals
     public abstract class VisualBase : BaseHandle
     {
         #region Internal And Private
-        internal PropertyMap cachedVisualPropertyMap = null;
-        internal PropertyMap changedPropertyMap = null;
+        internal PropertyMap cachedVisualPropertyMap;
+        internal PropertyMap changedPropertyMap;
 
         internal bool visualCreationRequiredFlag = true; // The first time should create visual.
 
-        internal bool visualCreationManually = false;
+        internal bool visualCreationManually;
 
         private int internalType = (int)Tizen.NUI.Visual.Type.Invalid;
 
-        private bool visualPropertyUpdateProcessAttachedFlag = false;
+        private bool visualPropertyUpdateProcessAttachedFlag;
 
-        private bool visualFittingModeApplied = false; // Whether we use fitting mode, or DontCare.
+        private bool visualFittingModeApplied; // Whether we use fitting mode, or DontCare.
 
         internal class VisualTransformInfo : System.IDisposable
         {
index 295f6c25fa21511525c47f60b377bb374c4391fc..2c73403e35306819b9fd9b3f29c65adf8c2480bb 100755 (executable)
@@ -167,8 +167,8 @@ namespace Tizen.NUI.BaseComponents
         private EventHandler<WebViewUserMediaPermissionRequestEventArgs> userMediaPermissionRequestEventHandler;
         private WebViewUserMediaPermissionRequestCallback userMediaPermissionRequestCallback;
 
-        private WebContext webContext = null;
-        private WebCookieManager webCookieManager = null;
+        private WebContext webContext;
+        private WebCookieManager webCookieManager;
 
         /// <summary>
         /// Default constructor to create a WebView.
@@ -2633,7 +2633,7 @@ namespace Tizen.NUI.BaseComponents
         }
 
         private Dictionary<int, JavaScriptMessageHandler> _evaluateJavaScriptHandlerMap = new Dictionary<int, JavaScriptMessageHandler>();
-        private int _evaluateJavaScriptCallbackId = 0;
+        private int _evaluateJavaScriptCallbackId;
 
         /// <summary>
         /// Evaluates JavaScript code represented as a string.
index 55d7ac938a41cdd1b3583e475e40c7c7e69c4ab8..3bacec88f1d47ef26b877b3e017424ae5fc1afc4 100755 (executable)
@@ -22,7 +22,7 @@ namespace Tizen.NUI.BaseComponents
 {
     public partial class WebView
     {
-        private static readonly BindableProperty UrlProperty = null;
+        private static readonly BindableProperty UrlProperty;
 
         internal static void SetInternalUrlProperty(BindableObject bindable, object oldValue, object newValue)
         {
@@ -39,7 +39,7 @@ namespace Tizen.NUI.BaseComponents
             return webview.GetInternalUrl();
         }
 
-        private static readonly BindableProperty UserAgentProperty = null;
+        private static readonly BindableProperty UserAgentProperty;
 
         internal static void SetInternalUserAgentProperty(BindableObject bindable, object oldValue, object newValue)
         {
@@ -56,7 +56,7 @@ namespace Tizen.NUI.BaseComponents
             return webview.GetInternalUserAgent();
         }
 
-        private static readonly BindableProperty ScrollPositionProperty = null;
+        private static readonly BindableProperty ScrollPositionProperty;
 
         internal static void SetInternalScrollPositionProperty(BindableObject bindable, object oldValue, object newValue)
         {
@@ -73,7 +73,7 @@ namespace Tizen.NUI.BaseComponents
             return webview.GetInternalScrollPosition();
         }
 
-        private static readonly BindableProperty ScrollSizeProperty = null;
+        private static readonly BindableProperty ScrollSizeProperty;
 
         internal static object GetInternalScrollSizeProperty(BindableObject bindable)
         {
@@ -81,7 +81,7 @@ namespace Tizen.NUI.BaseComponents
             return webview.GetInternalScrollSize();
         }
 
-        private static readonly BindableProperty ContentSizeProperty = null;
+        private static readonly BindableProperty ContentSizeProperty;
 
         internal static object GetInternalContentSizeProperty(BindableObject bindable)
         {
@@ -89,7 +89,7 @@ namespace Tizen.NUI.BaseComponents
             return webview.GetInternalContentSize();
         }
 
-        private static readonly BindableProperty TitleProperty = null;
+        private static readonly BindableProperty TitleProperty;
 
         internal static object GetInternalTitleProperty(BindableObject bindable)
         {
@@ -97,7 +97,7 @@ namespace Tizen.NUI.BaseComponents
             return webview.GetInternalTitle();
         }
 
-        private static readonly BindableProperty VideoHoleEnabledProperty = null;
+        private static readonly BindableProperty VideoHoleEnabledProperty;
 
         internal static void SetInternalVideoHoleEnabledProperty(BindableObject bindable, object oldValue, object newValue)
         {
@@ -114,7 +114,7 @@ namespace Tizen.NUI.BaseComponents
             return webview.GetInternalVideoHoleEnabled();
         }
 
-        private static readonly BindableProperty MouseEventsEnabledProperty = null;
+        private static readonly BindableProperty MouseEventsEnabledProperty;
 
         internal static void SetInternalMouseEventsEnabledProperty(BindableObject bindable, object oldValue, object newValue)
         {
@@ -131,7 +131,7 @@ namespace Tizen.NUI.BaseComponents
             return webview.GetInternalMouseEventsEnabled();
         }
 
-        private static readonly BindableProperty KeyEventsEnabledProperty = null;
+        private static readonly BindableProperty KeyEventsEnabledProperty;
 
         internal static void SetInternalKeyEventsEnabledProperty(BindableObject bindable, object oldValue, object newValue)
         {
@@ -148,7 +148,7 @@ namespace Tizen.NUI.BaseComponents
             return webview.GetInternalKeyEventsEnabled();
         }
 
-        private static readonly BindableProperty ContentBackgroundColorProperty = null;
+        private static readonly BindableProperty ContentBackgroundColorProperty;
 
         internal static void SetInternalContentBackgroundColorProperty(BindableObject bindable, object oldValue, object newValue)
         {
@@ -165,7 +165,7 @@ namespace Tizen.NUI.BaseComponents
             return webview.GetInternalContentBackgroundColor();
         }
 
-        private static readonly BindableProperty TilesClearedWhenHiddenProperty = null;
+        private static readonly BindableProperty TilesClearedWhenHiddenProperty;
 
         internal static void SetInternalTilesClearedWhenHiddenProperty(BindableObject bindable, object oldValue, object newValue)
         {
@@ -182,7 +182,7 @@ namespace Tizen.NUI.BaseComponents
             return webview.GetInternalTilesClearedWhenHidden();
         }
 
-        private static readonly BindableProperty TileCoverAreaMultiplierProperty = null;
+        private static readonly BindableProperty TileCoverAreaMultiplierProperty;
 
         internal static void SetInternalTileCoverAreaMultiplierProperty(BindableObject bindable, object oldValue, object newValue)
         {
@@ -199,7 +199,7 @@ namespace Tizen.NUI.BaseComponents
             return webview.GetInternalTileCoverAreaMultiplier();
         }
 
-        private static readonly BindableProperty CursorEnabledByClientProperty = null;
+        private static readonly BindableProperty CursorEnabledByClientProperty;
 
         internal static void SetInternalCursorEnabledByClientProperty(BindableObject bindable, object oldValue, object newValue)
         {
@@ -216,7 +216,7 @@ namespace Tizen.NUI.BaseComponents
             return webview.GetInternalCursorEnabledByClient();
         }
 
-        private static readonly BindableProperty SelectedTextProperty = null;
+        private static readonly BindableProperty SelectedTextProperty;
 
         internal static object GetInternalSelectedTextProperty(BindableObject bindable)
         {
@@ -224,7 +224,7 @@ namespace Tizen.NUI.BaseComponents
             return webview.GetInternalSelectedText();
         }
 
-        private static readonly BindableProperty PageZoomFactorProperty = null;
+        private static readonly BindableProperty PageZoomFactorProperty;
 
         internal static void SetInternalPageZoomFactorProperty(BindableObject bindable, object oldValue, object newValue)
         {
@@ -241,7 +241,7 @@ namespace Tizen.NUI.BaseComponents
             return webview.GetInternalPageZoomFactor();
         }
 
-        private static readonly BindableProperty TextZoomFactorProperty = null;
+        private static readonly BindableProperty TextZoomFactorProperty;
 
         internal static void SetInternalTextZoomFactorProperty(BindableObject bindable, object oldValue, object newValue)
         {
@@ -258,7 +258,7 @@ namespace Tizen.NUI.BaseComponents
             return webview.GetInternalTextZoomFactor();
         }
 
-        private static readonly BindableProperty LoadProgressPercentageProperty = null;
+        private static readonly BindableProperty LoadProgressPercentageProperty;
 
         internal static object GetInternalLoadProgressPercentageProperty(BindableObject bindable)
         {
index bd41735c3883e7525ae33f0c276ba45a7082dc17..a76eb1d89ca48b42c54edbaa9e4f3c2f03db6f44 100755 (executable)
@@ -32,32 +32,32 @@ namespace Tizen.NUI
         #endregion //Constant Fields
 
         #region Fields
-        private IBorderInterface borderInterface = null;
-        private Layer borderWindowRootLayer = null;
-        private Layer borderWindowBottomLayer = null;
+        private IBorderInterface borderInterface;
+        private Layer borderWindowRootLayer;
+        private Layer borderWindowBottomLayer;
         private WindowOrientation currentOrientation;
 
         // for border area
-        private View rootView = null;
-        private BorderView borderView = null;
-        private View topView = null;
-        private View contentsView = null;
-        private View bottomView = null;
-        private float borderHeight = 0;
-        private int screenWidth = 0;
-        private int screenHeight = 0;
-
-        private bool isBorderWindow = false;
-        private bool hasTopView = false;
-        private bool hasBottomView = false;
-        private bool isEnabledOverlayMode = false;
-        private bool isMaximized = false;
+        private View rootView;
+        private BorderView borderView;
+        private View topView;
+        private View contentsView;
+        private View bottomView;
+        private float borderHeight;
+        private int screenWidth;
+        private int screenHeight;
+
+        private bool isBorderWindow;
+        private bool hasTopView;
+        private bool hasBottomView;
+        private bool isEnabledOverlayMode;
+        private bool isMaximized;
 
 
         // for config
-        private Size2D minSize = null;
-        private Size2D maxSize = null;
-        private uint borderLineThickness = 0;
+        private Size2D minSize;
+        private Size2D maxSize;
+        private uint borderLineThickness;
         private BorderResizePolicyType borderResizePolicy = BorderResizePolicyType.Free;
         #endregion //Fields
 
@@ -69,7 +69,7 @@ namespace Tizen.NUI
 
         #region Delegates
         internal delegate void BorderCloseDelegate();
-        private BorderCloseDelegate borderCloseDelegate = null;
+        private BorderCloseDelegate borderCloseDelegate;
 
         #endregion //Delegates
 
@@ -706,7 +706,7 @@ namespace Tizen.NUI
         // View class for border view.
         private class BorderView : View
         {
-            private bool isEnabledOverlay = false;
+            private bool isEnabledOverlay;
             private Extents prePadding = new Extents(0, 0, 0, 0);
 
             internal BorderView() : base()
index 141549481b9512a218af3f6e1aed028a6558cc13..9e5587037bcab52bf42631c0ce9de6c1c17582f9 100755 (executable)
@@ -67,7 +67,7 @@ namespace Tizen.NUI
 
 
         #region Fields
-        private bool disposed = false;
+        private bool disposed;
         private Color backgroundColor;
         private View borderView;
 
@@ -78,9 +78,8 @@ namespace Tizen.NUI
         private ImageView rightCornerIcon;
 
         private Window.BorderDirection direction = Window.BorderDirection.None;
-        private float preScale = 0;
+        private float preScale;
 
-        private View windowView = null;
         private Timer overlayTimer;
 
         private uint borderLineThickness;
@@ -1058,7 +1057,6 @@ namespace Tizen.NUI
             if (disposing)
             {
                 borderView?.Dispose();
-                windowView?.Dispose();
                 borderPanGestureDetector?.Dispose();
                 backgroundColor?.Dispose();
                 minimalizeIcon?.Dispose();
index 560274b619481023e4a7dd628e5de43a9663f4af..f23983e5d341e45c9184a630f9f2ee54a969c7ca 100755 (executable)
@@ -2391,7 +2391,7 @@ namespace Tizen.NUI
 
         private static readonly object locker = new object();
 
-        private static int key = 0;
+        private static int key;
 
         private static FrameCallbackType internalHookFrameCallback = OnInternalHookFrameCallback;
 
index f0326f1cd0975cf9dcf782a15a602c373d1de874..b28dee4f4f66bb66e719ff921dbd7971ddfd2b6f 100755 (executable)
@@ -127,7 +127,7 @@ namespace Tizen.NUI.Xaml
 
         HydrationContext Context { get; }
         public object TargetObject { get; }
-        public object TargetProperty { get; internal set; } = null;
+        public object TargetProperty { get; internal set; }
 
         IEnumerable<object> IProvideParentValues.ParentObjects
         {
index 08e6ff5f178125045a7a78d1fea030ccd25d9f53..4af469c0dbc6357c62b711405b4adf25cde809f3 100755 (executable)
@@ -36,7 +36,7 @@ namespace Tizen.NUI.Binding
         [EditorBrowsable(EditorBrowsableState.Never)]
         public BindableProperty Property { get; set; }
 
-        private bool isOriginalValue = false;
+        private bool isOriginalValue;
         private object value;
 
         [EditorBrowsable(EditorBrowsableState.Never)]