get max value in a list of struct C# -


i have list of struct in c#. struct has 5 variables(int doc1,int paragraph1,int doc2,int paragraph2,float similarity). doc1 , paragraph1 represent index of paragraph in doc related parag2 in doc2 similarity value. possible paragraph in document associated many other paragraphs different similarity. want have parag2 , doc2 having max similarity.

override operators ==, >, >=, <, <=, != on struct, use linq max value list.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -