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?
List<T>
id
i
For example, use the Max function
list.Max(el=>el.Id)
Source: https://ru.stackoverflow.com/questions/494289/More articles:The keydown event does not work when pressing three keysFile filtering when running scpHow to apply a style to an element on a particular page using CSS and not creating classes?Can I enable chunks in modx in static files?Counting the number and frequency of dropouts of a specific element of the array “PHP”Displaying a text field with pdoPage in ModxCygwin - compilation without dependence on cygwinSQL Server: using FORMATFILE in bulk insertHow to do without a variableHelp me find a bug in the implementation of Hibernate communication OneToOneAll Articles