mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
allow to add collections
This commit is contained in:
parent
b7edabb9dc
commit
2a07a862ee
@ -54,6 +54,21 @@ namespace RusticiSoftware.Translator.Utils
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Adds the specified element to this set if it is not already present.
|
||||||
|
/// o: The object to add to the set.
|
||||||
|
/// returns true if the object was added, false if it was already present.
|
||||||
|
public void Add(IList<T> els)
|
||||||
|
{
|
||||||
|
if (els != null)
|
||||||
|
{
|
||||||
|
foreach (T s in els)
|
||||||
|
{
|
||||||
|
Add(s);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public T[] AsArray()
|
public T[] AsArray()
|
||||||
{
|
{
|
||||||
ICollection keys = setD.Keys;
|
ICollection keys = setD.Keys;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user