Esempio n. 1
0
        public static CreativeTeam <TCountry> operator -(CreativeTeam <TCountry> gr, Artist <TCountry> art)  //deleting artist from group
        {
            CreativeTeam <TCountry> res = gr;

            res.Members = gr.Members.Where(val => val != art).ToList();
            return(res);
        }
Esempio n. 2
0
        public static CreativeTeam <TCountry> operator +(CreativeTeam <TCountry> gr, Artist <TCountry> ar)    //adding artist to the group
        {
            CreativeTeam <TCountry> res = gr;

            res.Members.Add(ar);
            return(res);
        }