By condition of the problem, an arbitrary List<T> has an id attribute. You must select and write to the variable i maximum value of the id attribute. How to?

    1 answer 1

    For example, use the Max function

     list.Max(el=>el.Id)