private bool ShouldIgnoreProperty(PropertyInfo prop, string nodeFullName)
{
bool allowed = true;
bool disallowed = false;
string propId = string.Format("{0}.{1}", nodeFullName, prop.Name);
if (allowedPropertyList != null)
{
allowed = Array.BinarySearch(allowedPropertyList, propId, CaseInsensitiveComparer.Default) >= 0;
}
if (excludedPropertyList != null)
{
disallowed = Array.BinarySearch(excludedPropertyList, propId, CaseInsensitiveComparer.Default) >= 0;
}
return (!allowed) || (disallowed);
}