From: Jiyun Yang Date: Thu, 8 Apr 2021 10:56:23 +0000 (+0900) Subject: [NUI] Fix type comparison method in PropertyHelper X-Git-Tag: citest_t1~122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=579a7e67a3a9a13378c2babe441028c7b9e94f9f;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix type comparison method in PropertyHelper Signed-off-by: Jiyun Yang --- diff --git a/src/Tizen.NUI/src/internal/Common/PropertyHelper.cs b/src/Tizen.NUI/src/internal/Common/PropertyHelper.cs index 4be0347..a806646 100755 --- a/src/Tizen.NUI/src/internal/Common/PropertyHelper.cs +++ b/src/Tizen.NUI/src/internal/Common/PropertyHelper.cs @@ -211,10 +211,9 @@ namespace Tizen.NUI private static object ObjectVector4ToFloat(object value) { - Type type = value.GetType(); - if (type.Equals(typeof(Vector4))) + if (value is Vector4 vector) { - return ((Vector4)value).X; + return vector.X; } return value;