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); } }
public void AddDenyFilter(IDenyFilter filter) { this.m_DenyList.Add(filter); }