/// <summary>
/// Creates a shallow copy of the specified <see cref="StringCollection" />.
/// </summary>
/// <param name="stringCollection">The <see cref="StringCollection" /> that should be copied.</param>
/// <returns>
/// A shallow copy of the specified <see cref="StringCollection" />.
/// </returns>
private static StringCollection Clone(StringCollection stringCollection) {
string[] strings = new string[stringCollection.Count];
stringCollection.CopyTo(strings, 0);
StringCollection clone = new StringCollection();
clone.AddRange(strings);
return clone;
}
/// Creates a shallow copy of the specified <see cref="StringCollection" />.
/// </summary>
/// <param name="stringCollection">The <see cref="StringCollection" /> that should be copied.</param>
/// <returns>
/// A shallow copy of the specified <see cref="StringCollection" />.
/// </returns>
private static StringCollection Clone(StringCollection stringCollection) {
string[] strings = new string[stringCollection.Count];
stringCollection.CopyTo(strings, 0);
StringCollection clone = new StringCollection();
clone.AddRange(strings);
return clone;
}