[NUI] Fix a build warning CA1827 (#2314)
authorSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Thu, 3 Dec 2020 05:49:53 +0000 (14:49 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 8 Dec 2020 06:23:12 +0000 (15:23 +0900)
commitfe83bdbc14c80d83b2e4e4647a7fa5405e7b95eb
tree8b20b137886287fe6fc601da74faa024da084cea
parent541cfe7a44e85edf2690326fe102ebe02d005571
[NUI] Fix a build warning CA1827 (#2314)

- Changed to use `Count()` method once for a local variable.
 Then, we do not have to be worried about CA1827.
- To fix the build warning, it could replace `Count()` method with `Any()` method
 https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1827
- But, to improve performance as a review, use `Count()` itself.

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/ControlState.cs