You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
864 B
C#
42 lines
864 B
C#
9 months ago
|
namespace com.azkoss.excellite
|
||
|
{
|
||
|
using System;
|
||
|
using System.Collections;
|
||
|
|
||
|
internal class IndexedHashCollection : ArrayList
|
||
|
{
|
||
|
// Methods
|
||
|
public IndexedHashCollection()
|
||
|
{
|
||
|
this.hashtable = new Hashtable();
|
||
|
}
|
||
|
|
||
|
public override int Add(object item)
|
||
|
{
|
||
|
object obj1 = this.hashtable[item];
|
||
|
if (obj1 != null)
|
||
|
{
|
||
|
return (int) obj1;
|
||
|
}
|
||
|
return this.AddInternal(item);
|
||
|
}
|
||
|
|
||
|
protected int AddArrayOnly(object item)
|
||
|
{
|
||
|
return base.Add(item);
|
||
|
}
|
||
|
|
||
|
public int AddInternal(object item)
|
||
|
{
|
||
|
int num1 = this.AddArrayOnly(item);
|
||
|
this.hashtable[item] = num1;
|
||
|
return num1;
|
||
|
}
|
||
|
|
||
|
|
||
|
// Fields
|
||
|
private Hashtable hashtable;
|
||
|
}
|
||
|
}
|
||
|
|