public void addPartContester(Contester contester) { if (!Contester.Equals(contester)) { Contester = contester; } }
public static Contester createPart(Pokemon Pokemon, int ContesterID, string Specialisation) { if (Pokemon == null) { throw new Exception("Pokemon doesn't exists"); } Contester contPart = new Contester(Pokemon, ContesterID, Specialisation); Pokemon.addPartContester(contPart); return(contPart); }