Exemple #1
0
 public static void AddCloneRange <T>(this ICloneCollection <T> source, IEnumerable <T> collection) where T : ICloneable
 {
     foreach (var value in collection)
     {
         source.Add((T)value.Clone());
     }
 }
Exemple #2
0
 public static void AddRange <T>(this ICloneCollection <T> source, IEnumerable <T> collection)
 {
     foreach (var value in collection)
     {
         source.Add(value);
     }
 }
Exemple #3
0
 public void Add(IVegetable item)
 {
     _ingridients.Add(item);
 }