BExIS.Ddm.Model.SearchCriteria.ContainsProperty C# (CSharp) 메소드

ContainsProperty() 공개 메소드

Check if Property in SerachCriteriaList This function is used to check whether an property is present in the list.
public ContainsProperty ( Property Property ) : bool
Property Property
리턴 bool
        public bool ContainsProperty(Property Property)
        {
            var isIn = (from sco in SearchCriteriaList
                        from v in sco.Values
                        where v.Equals(Property.Name, StringComparison.InvariantCulture) ||
                        sco.SearchComponent.Name.Equals(Property.Name, StringComparison.InvariantCulture)
                        select sco).Count() > 0;

            return isIn;
        }