[NUI] Fix CA1721 warnings of Public APIs
authorDaekwang Ryu <dkdk.ryu@samsung.com>
Wed, 3 Feb 2021 04:47:18 +0000 (13:47 +0900)
committerhuiyueun <35286162+huiyueun@users.noreply.github.com>
Tue, 9 Feb 2021 06:12:33 +0000 (15:12 +0900)
CA1721: Property names should not match get methods
https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1721

src/Tizen.NUI/src/internal/Common/RenderTask.cs
src/Tizen.NUI/src/internal/Utility/Camera.cs
src/Tizen.NUI/src/public/BaseComponents/CustomView.cs
src/Tizen.NUI/src/public/BaseComponents/TableView.cs
src/Tizen.NUI/src/public/BaseComponents/ViewPublicMethods.cs
src/Tizen.NUI/src/public/Common/Container.cs
src/Tizen.NUI/src/public/Common/Layer.cs
src/Tizen.NUI/src/public/XamlBinding/Interactivity/DataTrigger.cs
src/Tizen.NUI/src/public/XamlBinding/Trigger.cs

index 9b460c8..a07109b 100755 (executable)
@@ -297,14 +297,14 @@ namespace Tizen.NUI
             return ret;
         }
 
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use ClearColor property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use ClearColor property instead!")]
         public void SetClearColor(Vector4 color)
         {
             Interop.RenderTask.SetClearColor(SwigCPtr, Vector4.getCPtr(color));
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use ClearColor property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use ClearColor property instead!")]
         public Vector4 GetClearColor()
         {
             Vector4 ret = new Vector4(Interop.RenderTask.GetClearColor(SwigCPtr), true);
index 641ea81..819315a 100755 (executable)
@@ -116,14 +116,14 @@ namespace Tizen.NUI
             return ret;
         }
 
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use FieldOfView property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use FieldOfView property instead!")]
         public void SetFieldOfView(float fieldOfView)
         {
             Interop.CameraActor.SetFieldOfView(SwigCPtr, fieldOfView);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use FieldOfView property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use FieldOfView property instead!")]
         public float GetFieldOfView()
         {
             float ret = Interop.CameraActor.GetFieldOfView(SwigCPtr);
@@ -131,14 +131,14 @@ namespace Tizen.NUI
             return ret;
         }
 
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use AspectRatio property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use AspectRatio property instead!")]
         public void SetAspectRatio(float aspectRatio)
         {
             Interop.CameraActor.SetAspectRatio(SwigCPtr, aspectRatio);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use AspectRatio property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use AspectRatio property instead!")]
         public float GetAspectRatio()
         {
             float ret = Interop.CameraActor.GetAspectRatio(SwigCPtr);
@@ -172,14 +172,14 @@ namespace Tizen.NUI
             return ret;
         }
 
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use TargetPosition property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use TargetPosition property instead!")]
         public void SetTargetPosition(Vector3 targetPosition)
         {
             Interop.CameraActor.SetTargetPosition(SwigCPtr, Vector3.getCPtr(targetPosition));
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use TargetPosition property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use TargetPosition property instead!")]
         public Vector3 GetTargetPosition()
         {
             Vector3 ret = new Vector3(Interop.CameraActor.GetTargetPosition(SwigCPtr), true);
@@ -187,14 +187,14 @@ namespace Tizen.NUI
             return ret;
         }
 
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use InvertYAxis property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use InvertYAxis property instead!")]
         public void SetInvertYAxis(bool invertYAxis)
         {
             Interop.CameraActor.SetInvertYAxis(SwigCPtr, invertYAxis);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use InvertYAxis property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use InvertYAxis property instead!")]
         public bool GetInvertYAxis()
         {
             bool ret = Interop.CameraActor.GetInvertYAxis(SwigCPtr);
index 87120d4..2cbd4b9 100755 (executable)
@@ -339,7 +339,7 @@ namespace Tizen.NUI.BaseComponents
         /// <param name="width">Width to use</param>
         /// <returns>The height based on the width</returns>
         /// <since_tizen> 3 </since_tizen>
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use HeightForWidth property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use HeightForWidth property instead!")]
         public new virtual float GetHeightForWidth(float width)
         {
             return viewWrapperImpl.GetHeightForWidthBase(width);
@@ -352,7 +352,7 @@ namespace Tizen.NUI.BaseComponents
         /// <param name="height">Height to use</param>
         /// <returns>The width based on the width</returns>
         /// <since_tizen> 3 </since_tizen>
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use WidthForHeight property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use WidthForHeight property instead!")]
         public new virtual float GetWidthForHeight(float height)
         {
             return viewWrapperImpl.GetWidthForHeightBase(height);
index cc51a94..e3c7c6c 100755 (executable)
@@ -395,7 +395,7 @@ namespace Tizen.NUI.BaseComponents
         /// </summary>
         /// <param name="padding">Width and height.</param>
         /// <since_tizen> 3 </since_tizen>
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use CellPadding property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use CellPadding property instead!")]
         public void SetCellPadding(Size2D padding)
         {
             Interop.TableView.SetCellPadding(SwigCPtr, Size2D.getCPtr(padding));
@@ -407,7 +407,7 @@ namespace Tizen.NUI.BaseComponents
         /// </summary>
         /// <returns>The current padding as width and height.</returns>
         /// <since_tizen> 3 </since_tizen>
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use CellPadding property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use CellPadding property instead!")]
         public Vector2 GetCellPadding()
         {
             Vector2 ret = new Vector2(Interop.TableView.GetCellPadding(SwigCPtr), true);
index b4dbbae..7560872 100755 (executable)
@@ -221,7 +221,7 @@ namespace Tizen.NUI.BaseComponents
         /// </summary>
         /// <seealso cref="Container.GetChildCount" />
         /// <since_tizen> 4 </since_tizen>
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use ChildCount property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use ChildCount property instead!")]
         public override uint GetChildCount()
         {
             return Convert.ToUInt32(Children.Count);
@@ -262,7 +262,7 @@ namespace Tizen.NUI.BaseComponents
         /// </summary>
         /// <param name="styleName">A string matching a style described in a stylesheet.</param>
         /// <since_tizen> 3 </since_tizen>
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use StyleName property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use StyleName property instead!")]
         public void SetStyleName(string styleName)
         {
             Interop.View.SetStyleName(SwigCPtr, styleName);
@@ -274,7 +274,7 @@ namespace Tizen.NUI.BaseComponents
         /// </summary>
         /// <returns>A string matching a style, or an empty string.</returns>
         /// <since_tizen> 3 </since_tizen>
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use StyleName property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use StyleName property instead!")]
         public string GetStyleName()
         {
             string ret = Interop.View.GetStyleName(SwigCPtr);
@@ -468,7 +468,7 @@ namespace Tizen.NUI.BaseComponents
         /// <param name="width">The width to use.</param>
         /// <returns>The height based on the width.</returns>
         /// <since_tizen> 3 </since_tizen>
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use HeightForWidth property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use HeightForWidth property instead!")]
         public float GetHeightForWidth(float width)
         {
             float ret = Interop.Actor.GetHeightForWidth(SwigCPtr, width);
@@ -485,7 +485,7 @@ namespace Tizen.NUI.BaseComponents
         /// <param name="height">The height to use.</param>
         /// <returns>The width based on the height.</returns>
         /// <since_tizen> 3 </since_tizen>
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use WidthForHeight property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use WidthForHeight property instead!")]
         public float GetWidthForHeight(float height)
         {
             float ret = Interop.Actor.GetWidthForHeight(SwigCPtr, height);
@@ -526,7 +526,7 @@ namespace Tizen.NUI.BaseComponents
         /// </summary>
         /// <param name="paddingOut">the value of padding for the view</param>
         /// <since_tizen> 3 </since_tizen>
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use Padding property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use Padding property instead!")]
         public void GetPadding(PaddingType paddingOut)
         {
             Interop.Actor.GetPadding(SwigCPtr, PaddingType.getCPtr(paddingOut));
index 55a0d55..2c8e6af 100755 (executable)
@@ -123,7 +123,7 @@ namespace Tizen.NUI
         /// <pre>The container has been initialized.</pre>
         /// <returns>The number of children.</returns>
         /// <since_tizen> 4 </since_tizen>
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use ChildCount property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use ChildCount property instead!")]
         public abstract UInt32 GetChildCount();
 
         internal abstract View FindCurrentChildById(uint id);
index 4c8cddd..9abbe28 100755 (executable)
@@ -355,7 +355,7 @@ namespace Tizen.NUI
         /// </summary>
         /// <returns>The child count of the layer.</returns>
         /// <since_tizen> 4 </since_tizen>
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use ChildCount property instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use ChildCount property instead!")]
         public override uint GetChildCount()
         {
             return Convert.ToUInt32(Children.Count);
index 33bc2dd..6d0acdb 100755 (executable)
@@ -44,7 +44,7 @@ namespace Tizen.NUI.Binding
 
         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use GetValue() instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use GetValue() instead!")]
         public object Value
         {
             get { return ((BindingCondition)Condition).Value; }
index 0473df7..5c4b54d 100755 (executable)
@@ -51,7 +51,7 @@ namespace Tizen.NUI.Binding
         /// <since_tizen> 6 </since_tizen>
         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
-        // [Obsolete("Deprecated in API9, will be removed in API11. Please use GetValue() instead!")]
+        [Obsolete("Deprecated in API9, will be removed in API11. Please use GetValue() instead!")]
         public object Value
         {
             get { return ((XamlPropertyCondition)Condition).Value; }