/// <summary> /// Adds a collection of LayerMoves to the given collection /// </summary> /// <param name="collection1">Defines the collection to be expanded</param> /// <param name="collection2">Defines the collection to be added</param> /// <returns></returns> public static LayerMoveCollection operator &(LayerMoveCollection collection1, LayerMoveCollection collection2) { LayerMoveCollection lmc = new LayerMoveCollection(); lmc.AddRange(collection1); lmc.AddRange(collection2); return(lmc); }
// *** OPERATORS *** /// <summary> /// Adds a single LayerMove to the given collection /// </summary> /// <param name="collection">Defines the collection to be expanded</param> /// <param name="newMove">Defines the additional LayerMove</param> /// <returns></returns> public static LayerMoveCollection operator &(LayerMoveCollection collection, LayerMove newMove) { LayerMoveCollection lmc = new LayerMoveCollection(); lmc.AddRange(collection); lmc.Add(newMove); return(lmc); }