コード例 #1
0
        public override bool Equals(object obj)
        {
            if (obj is DataIndex)
            {
                DataIndex index = (DataIndex)obj;
                return(this.indexName.Equals(index.indexName));
            }

            return(false);
        }
コード例 #2
0
 /// <summary>
 /// Removes a FluidTrade.Core.DataIndex from the collection.
 /// </summary>
 /// <param name="dataIndex">The index to be removed from the collection.</param>
 public void Remove(DataIndex dataIndex)
 {
     // The list is used for iteration, the table is used for fast access.
     this.arrayList.Remove(dataIndex);
     this.hashTable.Remove(dataIndex.IndexName);
 }