Added BindingFlags modifier to search and register only the properties declared on... 77/135977/1
authorUmar <m.umar@partner.samsung.com>
Tue, 27 Jun 2017 19:01:08 +0000 (20:01 +0100)
committerUmar <m.umar@partner.samsung.com>
Tue, 27 Jun 2017 19:01:08 +0000 (20:01 +0100)
Change-Id: I2540920d4d2171c3f30eaf532deb1e3d014d1c99

Tizen.NUI/src/public/CustomViewRegistry.cs

index 2a5763a..37180f9 100644 (file)
@@ -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)