Adf.Base.Domain.DescriptorPropertyParser.IsEmpty C# (CSharp) Method

IsEmpty() public method

Checks whether the specified object is empty or not.
public IsEmpty ( object target ) : bool
target object The Object to be checked for null or empty.
return bool
        public bool IsEmpty(object target)
        {
            var item = target as Descriptor;
            if (item == null || string.IsNullOrEmpty(item.Name))
            {
                return true;
            }

            return (item.Name.ToUpper() == "EMPTY");
        }