Witam.
Mam do rozwiązania być może trywialny problem, jednak nie jestem w stanie w żaden sposób się do niego zabrać, nie mam na niego pomysłu.
Jest klasa, która ma 2 metody zwracające tablice oraz kilka metod z rezultatem skalarnym.
Problem jest taki, że nie mogę modyfikować definicji metod.
Oto kod klasy:
public class Persons
{
public string FirstName {get; set;}
public string LastName {get;set;}
public string Country {get; set;}
public Persons[] Remove(Persons person)
{
}
public Persons[] Add(Persons person)
{
}
public boolean Exist(Persons person)
{
}
public boolean IsCountry(persons person)
{
}
}
Problem jest z implementacją metody Add oraz Remove.
Czy ktoś mógłby mi wskazać jak podejść do tego problemu?