Adf.Base.Domain.NullablePropertyParser.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)
        {
            Type type = value.GetType();

            PropertyInfo pi = type.GetProperty("HasValue");

            return (bool)pi.GetValue(value, null);
        }