Esempio n. 1
0
    /// <summary>
    /// Converts a collection to an array.
    /// </summary>
    public static _NAME_[] From_NAME_Collection(_NAME_Collection values)
    {
        if (values != null)
        {
            return(values.ToArray());
        }

        return(null);
    }
    /// <summary>
    /// Creates a deep copy of the collection.
    /// </summary>
    public object Clone()
    {
        _NAME_Collection clone = new _NAME_Collection(this.Count);

        foreach (_NAME_ element in this)
        {
            if (element != null)
            {
                clone.Add((_NAME_)element.Clone());
            }
            else
            {
                clone.Add(null);
            }
        }

        return(clone);
    }