Esempio n. 1
0
        public void RemoveDenyFilter(IDenyFilter filter)
        {
            int index = -1;

            for (int i = 0; i < this.m_DenyList.Count; i++)
            {
                IDenyFilter objA = (IDenyFilter)this.m_DenyList[i];
                if (object.ReferenceEquals(objA, filter))
                {
                    index = i;
                    break;
                }
            }
            if (index >= 0)
            {
                this.m_DenyList.RemoveAt(index);
            }
        }
Esempio n. 2
0
 public void AddDenyFilter(IDenyFilter filter)
 {
     this.m_DenyList.Add(filter);
 }