Castle.Components.Binder.DataBinder.ShouldIgnoreProperty C# (CSharp) Method

ShouldIgnoreProperty() private method

private ShouldIgnoreProperty ( PropertyInfo prop, string nodeFullName ) : bool
prop System.Reflection.PropertyInfo
nodeFullName string
return bool
		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);
		}