- Code: Select all
List<string> MyCustomPropertyNames = new List<string> {"foo","bar"};
foreach (var property in obj.GetAvailableProperties())
{
var info = obj.GetPropertyInfo(property);
if (MyCustomPropertyNames.Contains(info.DataType.ToString()))
{
...
}
}
... but info.DataType is always giving me Text. Is there a way to check for what the name of the inherited custom property is?