// *** OPERATORS *** /// <summary> /// Combines two LayerMoves into a LayerMoveCollection /// </summary> public static LayerMoveCollection operator &(LayerMove first, LayerMove second) { LayerMoveCollection moves = new LayerMoveCollection(); moves.Add(first); moves.Add(second); return(moves); }
// *** 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); }