We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
You can specify dynamic as the compared type, which allows you to define a comparer that can be applied to multiple, unrelated types:
dynamic
var comparer = Compare<dynamic>.OrderByDescending(x => x.Priority);
The comparer defined above can be used with any type that has a Priority property.
Priority