Adf.Base.Domain.ListPropertyParser.IsEmpty C# (CSharp) 메소드

IsEmpty() 공개 메소드

public IsEmpty ( object value ) : bool
value object
리턴 bool
        public bool IsEmpty(object value)
        {
            if (value == null) return true;

            var list = value as IList;

            if (list == null) throw new InvalidOperationException("Not an IList");

            return list.Count == 0;
        }