From f8f2c44e253464a43130c221bcb38d97e66d4b73 Mon Sep 17 00:00:00 2001 From: Umar Date: Tue, 27 Jun 2017 20:01:08 +0100 Subject: [PATCH] Added BindingFlags modifier to search and register only the properties declared on the Type. Change-Id: I2540920d4d2171c3f30eaf532deb1e3d014d1c99 --- Tizen.NUI/src/public/CustomViewRegistry.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tizen.NUI/src/public/CustomViewRegistry.cs b/Tizen.NUI/src/public/CustomViewRegistry.cs index 2a5763a..37180f9 100644 --- a/Tizen.NUI/src/public/CustomViewRegistry.cs +++ b/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) -- 2.7.4