I have a method:
public void MetodoAleatorio(List<RequisicaoFisicaDTO> lstRequisicaoFisicaDtos)
{
RequisicaoFisicaDTO requisicao = lstRequisicaoFisicaDtos.FirstOrDefault();
}
Where I get a DTO list and need to check if some properties are the same on all received objects, for example:
lstRequisicoes.All(x => x.IdTipoObjeto == requisicao.IdTipoObjeto);
I have about 12 properties of this object that need to be compared to the object list so that it matches what I want. Is there a more general way of doing this? Or a better way?