1
0
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:
Kevin Glynn 2011-01-10 11:21:32 +01:00
parent b7edabb9dc
commit 2a07a862ee

View File

@ -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()
{
ICollection keys = setD.Keys;