System.Security.Util.StringExpressionSet.IsEmpty C# (CSharp) Метод

IsEmpty() публичный Метод

public IsEmpty ( ) : bool
Результат bool
        public bool IsEmpty()
        {
            if (m_list == null)
            {
                return m_expressions == null;
            }
            else
            {
                return m_list.Count == 0;
            }
        }
        

Usage Example

Пример #1
0
        public StringExpressionSet Intersect(StringExpressionSet ses)
        {
            if (this.IsEmpty() || ses == null || ses.IsEmpty())
            {
                return(this.CreateNewEmpty());
            }
            this.CheckList();
            ses.CheckList();
            StringExpressionSet newEmpty = this.CreateNewEmpty();

            for (int index1 = 0; index1 < this.m_list.Count; ++index1)
            {
                for (int index2 = 0; index2 < ses.m_list.Count; ++index2)
                {
                    if (this.StringSubsetString((string)this.m_list[index1], (string)ses.m_list[index2], this.m_ignoreCase))
                    {
                        if (newEmpty.m_list == null)
                        {
                            newEmpty.m_list = new ArrayList();
                        }
                        newEmpty.AddSingleExpressionNoDuplicates((string)this.m_list[index1]);
                    }
                    else if (this.StringSubsetString((string)ses.m_list[index2], (string)this.m_list[index1], this.m_ignoreCase))
                    {
                        if (newEmpty.m_list == null)
                        {
                            newEmpty.m_list = new ArrayList();
                        }
                        newEmpty.AddSingleExpressionNoDuplicates((string)ses.m_list[index2]);
                    }
                }
            }
            newEmpty.GenerateString();
            return(newEmpty);
        }
All Usage Examples Of System.Security.Util.StringExpressionSet::IsEmpty