public override bool Equals(object obj) { if (obj == null) { return(false); } if (!this.GetType().Equals(obj.GetType())) { return(false); } GameDirectory d = obj as GameDirectory; return(d.Directory == this.Directory && d.GetGames().SequenceEqual(this.GetGames())); }
public bool RemoveGameDirectory(GameDirectory gameDirectory) { return(_gameDirectories.Remove(gameDirectory)); }
public void AddGameDirectory(GameDirectory gameDirectory) { _gameDirectories.Add(gameDirectory); }