Adf.Business.SmartReferences.SmartReferencePropertyParser.IsEmpty C# (CSharp) Méthode

IsEmpty() public méthode

Indicates whether the supplied object is empty or not.
Argument is not valid
public IsEmpty ( object value ) : bool
value object The Object to be checked for null or empty.
Résultat bool
        public bool IsEmpty(object value)
        {
            var smartReference = value as ISmartReference;

            if (smartReference == null) throw new ArgumentException("Value is not a valid smart reference.");

            return smartReference.IsEmpty;
        }