I have a list of Column custom class objects.
Column class has a Position property.
Each column in the list has a different position (currently 1, 2, 3, 4)
I want to find the rightmost column throgh a Max on the Position property:
Enumerable.Max(Of ExcelColumn)(Me.Columns, Function(c) c.Position)
or
Me.Columns.Max(Function(c) c.Position)
Both always return 0, don’t understand why. Any ideas?
For example:
By the way, this will return repeating zeros and hence
maxColPos=0:becaue 0 is the default value for an unitialized
Int32field.