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

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

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -