title: Splitting a list of objects based on a property c#
body: <p>myClass structure :</p>
  
  <pre><code>public class myClass
      {
          public string Name { get; set; }
          public string AdditionalData { get; set; }
          public System.DateTime ActivityTime { get; set; }
      }
  </code></pre>
  
  <p>I have a list of the above class <code>List&lt;myClass&gt;</code> all ordered by ActivityTime.</p>
  
  <p>I need to split the above list and get a <code>List&lt;List&lt;myClass&gt;&gt;</code> such that if there is a difference of more than a specific period say 5 mins between two consecutive ActivityTime  I wish the split to take place.</p>
  
  <p>Any help is sincerely appreciated.</p>
  
  <p>Thanks</p>