title: How to find duplicate property values in an IList of objects and merge them?
body: <p>The situation is as follows:</p>
  
  <p>In a school where there is a certain class that is divided into 2 groups: </p>
  
  <p>The First is studying English and the other one German, however the time allocated for the classes is the same. </p>
  
  <p>I have the virtual situation where in the <code>IList</code> (holding a record from the DB) I have the same <code>Time</code> class for the same class of Students and I need to join these objects using C# and preferably LINQ.</p>
  
  <p>In other words, I need to merge one object into another when these objects have the same Time property. The final result will be displayed in the school schedule (timetable) and the problem is to avoid having duplicated records.</p>
  
  <p>I currently have something like:</p>
  
  <pre><code>var lessons = KlassLesson.GetKlassSchedule(userProfile.Preferences.MyClassID, dayOfWeek);
  
  lessons = JoinDoubleLessons(lessons);
  
  private List&lt;KlassLesson&gt; JoinDoubleLessons(List&lt;KlassLesson&gt; lessons)
  {
    // ?????
  }
  </code></pre>