I need to compare 2 lists of objects that have been filled via the database, according to classes below:
public class Ausente
{
public ObjectId Id { get; set; }
public Int32 RA { get; set; }
}
public class AlunoEstagio
{
public ObjectId Id { get; set; }
public Int32 RA { get; set; }
public String ALUNO { get; set; }
public Int32 PERIODO { get; set; }
public String DISCIPLINA { get; set; }
public char CONCEITO { get; set; }
}
List 1 will receive the Missing object, list 2 will receive the StudentSite object.
I would like to compare the 2 lists so that when there is an RA attribute of List 1 present in List 2, that the corresponding object of List 2 is added to a third list (List 3).
I have no idea how to make this comparison, could you help me?