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

IsEmpty() public method

Checks whether the specified object is empty or not.
public IsEmpty ( object value ) : bool
value object The Object to be checked for null or empty.
return bool
        public bool IsEmpty(object value)
        {
            var valueobject = value as IValueObject;

            if (valueobject == null)
            {
                throw new ArgumentException("Argument is not a valid value object");
            }

            return valueobject.IsEmpty;
        }