Adf.Core.ExcludeAttribute.IsExcluded C# (CSharp) Method

IsExcluded() public static method

Returns a value indicating whether the value of the specified field will be excluded from a list.
/// Object reference not set to an instance of an object. ///
public static IsExcluded ( MemberInfo mi ) : bool
mi System.Reflection.MemberInfo The field to check.
return bool
        public static bool IsExcluded(MemberInfo mi)
        {
            if (mi == null)
                return false;

            return (mi.GetCustomAttributes(typeof(ExcludeAttribute), false).Length > 0);
        }
ExcludeAttribute