[NUI] Fix StyleCop warning CA2227 (#2232)
authorJaehyun Cho <29364140+jaehyun0cho@users.noreply.github.com>
Thu, 26 Nov 2020 02:46:29 +0000 (11:46 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Thu, 26 Nov 2020 08:19:50 +0000 (17:19 +0900)
To fix CA2227(Collection properties should be read only), the setters of
the collection properties are removed.

Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
Co-authored-by: YeongJong Lee <cleanlyj@naver.com>
src/Tizen.NUI/src/internal/BackKeyManager.cs
src/Tizen.NUI/src/public/BaseComponents/AnimatedImageView.cs

index 21cfbb9c6f2b2a94fe6f4802d5aafbd320e9a21a..b51cf3c5fee895a40238383a53407f88ef09e416 100755 (executable)
@@ -41,7 +41,7 @@ namespace Tizen.NUI
         /// Subscriber.
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public List<View> Subscriber { get; set; } = new List<View>();
+        public List<View> Subscriber { get; } = new List<View>();
 
         /// <summary>
         /// BackKeyManager static instance.
index 5a56e04d2cec606c89529df153597ec30378fa17..a6a0e4ae06b4ac3324f674ed04343bd122636011 100755 (executable)
@@ -74,11 +74,6 @@ namespace Tizen.NUI.BaseComponents
             {
                 return mUrl;
             }
-            set
-            {
-                mDirtyFlag = true;
-                mUrl = value;
-            }
         }
 
         /// <summary>
@@ -92,11 +87,6 @@ namespace Tizen.NUI.BaseComponents
             {
                 return mResourceURLs;
             }
-            set
-            {
-                mDirtyFlag = true;
-                mResourceURLs = value;
-            }
         }
 
         /// <summary>