I have a very simple custom class that I am loading into a combo box. I have done an overload on the ToString method to allow the combo box to read the text properly and now all I want to do is Sort the data, but I seem to be unable to. Here's what I did
so far, maybe someone can explain what is wrong. It doesn't throw an error, it just doesn't do anything. This is .NET 3.5 and VS2010.
Public Class CustomClass
Public Property Name As String = String.Empty
Public Property Help As String = String.Empty
Public Property Version As String = String.Empty
Public Overrides Function ToString() As String
Return Name
End Function
End Class
Dim CustomClassList = New List(Of CustomClass)
...Load List(Of CustomClass)...
CustomClassList.Sort(Function(x, y) x.Name.CompareTo(x.Name))
...
Go to the complete details ...