Hello,
I have a list of objects that contain a first name, last name and an id.
I am using the following to get my max.
int idMax = (from a in authorList select a.Id).Max();
I am getting an InvalidOpoerationException error. What am I doing wrong?
Thanks
I have a list of objects that contain a first name, last name and an id.
I am using the following to get my max.
int idMax = (from a in authorList select a.Id).Max();
I am getting an InvalidOpoerationException error. What am I doing wrong?
Thanks