From: Umar Date: Tue, 27 Jun 2017 19:01:08 +0000 (+0100) Subject: Added BindingFlags modifier to search and register only the properties declared on... X-Git-Tag: submit/trunk/20170823.075128~91^2~35^2~22^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2345faa544ba17d1c1bbb68bd0aa9ad6f9226b9;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Added BindingFlags modifier to search and register only the properties declared on the Type. Change-Id: I2540920d4d2171c3f30eaf532deb1e3d014d1c99 --- diff --git a/src/Tizen.NUI/src/public/CustomViewRegistry.cs b/src/Tizen.NUI/src/public/CustomViewRegistry.cs index 2a5763a..37180f9 100644 --- a/src/Tizen.NUI/src/public/CustomViewRegistry.cs +++ b/src/Tizen.NUI/src/public/CustomViewRegistry.cs @@ -280,7 +280,7 @@ namespace Tizen.NUI TypeRegistration.RegisterControl(viewType.Name, _createCallback); // Cycle through each property in the class - foreach (System.Reflection.PropertyInfo propertyInfo in viewType.GetProperties()) + foreach (System.Reflection.PropertyInfo propertyInfo in viewType.GetProperties(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public)) { if (propertyInfo.CanRead)