Looking at Select distinct by two properties in a list it is possible to use the DistinctBy extensionmethod with two properties. I tried to convert this to vb.net, but I\'m not
You need to write Key before property. like
Key
New With {Key element.Id, Key element.Name} in VB.
New With {Key element.Id, Key element.Name}
So,
Result = TestList.DistinctBy(Function(element) New With {Key element.Id, Key element.Name})
See the documentation for anonymous types in VB for more details.