/// <summary>
        /// Creates a new instance of the collection type <typeparamref name="TDerived"/> whose items
        /// are cloned from this collection's items.
        /// </summary>
        /// <typeparam name="TDerived">The type of collection to be created from this one.</typeparam>
        /// <returns>A new instance of the type <typeparamref name="TDerived"/> whose items are cloned
        /// from this collection.</returns>
        protected TDerived Clone <TDerived>()
            where TDerived : DependantCollection <T>, new()
        {
            var toReturn = new TDerived();

            toReturn.AddAll(this);
            return(toReturn);
        }
Exemple #2
0
 public abstract void Map(TDerived infoObj, Ref <TStruct> infoStruct);