Max value

larryse

New member
Joined
Dec 25, 2012
Messages
4
Programming Experience
1-3
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
 
Top Bottom