38 lines
743 B
C#
38 lines
743 B
C#
|
/**
|
|||
|
* 封装MultiMap,用于重用
|
|||
|
*/
|
|||
|
|
|||
|
namespace ET
|
|||
|
{
|
|||
|
public class MultiMapComponent<T, K>: Entity
|
|||
|
{
|
|||
|
public MultiMap<T, K> MultiMap = new MultiMap<T, K>();
|
|||
|
|
|||
|
public override void Dispose()
|
|||
|
{
|
|||
|
if (this.IsDisposed)
|
|||
|
{
|
|||
|
return;
|
|||
|
}
|
|||
|
|
|||
|
base.Dispose();
|
|||
|
|
|||
|
this.MultiMap.Clear();
|
|||
|
}
|
|||
|
} public class UnOrderMultiMapComponent<T, K>: Entity
|
|||
|
{
|
|||
|
public UnOrderMultiMap<T, K> MultiMap = new UnOrderMultiMap<T, K>();
|
|||
|
|
|||
|
public override void Dispose()
|
|||
|
{
|
|||
|
if (this.IsDisposed)
|
|||
|
{
|
|||
|
return;
|
|||
|
}
|
|||
|
|
|||
|
base.Dispose();
|
|||
|
|
|||
|
this.MultiMap.Clear();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|