Class SerializableHashSet<T>
HashSetがシリアライズ化できないので仮で用意
使い方
[Serializable]
class MyHashSet : SerializableHashSet<int>{}
のように使いたいタイプに対して継承して定義し、Serializableを付ける
Inheritance
System.Object
SerializableHashSet<T>
Assembly: cs.temp.dll.dll
Syntax
public class SerializableHashSet<T> : IEnumerable<T>
Type Parameters
Properties
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
Item[Int32]
Declaration
public T this[int index] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Methods
Add(T)
Declaration
Parameters
Type |
Name |
Description |
T |
item |
|
AddRange(IEnumerable<T>)
Declaration
public void AddRange(IEnumerable<T> collection)
Parameters
Type |
Name |
Description |
IEnumerable<T> |
collection |
|
Clear()
Declaration
Contains(T)
Declaration
public bool Contains(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Type |
Description |
System.Boolean |
|
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type |
Description |
IEnumerator<T> |
|
IndexOf(T)
Declaration
public int IndexOf(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Type |
Description |
System.Int32 |
|
Remove(T)
Declaration
public bool Remove(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Type |
Description |
System.Boolean |
|
RemoveAll(Predicate<T>)
Declaration
public int RemoveAll(Predicate<T> match)
Parameters
Type |
Name |
Description |
System.Predicate<T> |
match |
|
Returns
Type |
Description |
System.Int32 |
|
RemoveAt(Int32)
Declaration
public void RemoveAt(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|