private MacroActionBundle(MacroActionBundle macroActionBundle, bool copy) { Type = macroActionBundle.Type; Actions = new List <IMacroAction>(copy ? macroActionBundle.Actions.Select(action => action.Copy()) : macroActionBundle.Actions); }
public override bool Equals(object obj) { MacroActionBundle macroActionBundle = obj as MacroActionBundle; return(macroActionBundle != null && macroActionBundle.Type == Type && macroActionBundle.Actions.SequenceEqual(Actions)); }