title: How to retrieve specific set of values from the array of objects using linq
body: <p>I have one class as below:</p>
  
  <pre><code>public class test
  {    
       int i;
  
       string str;
  
       Socket s;
  
       DateTime dt;
  }
  </code></pre>
  
  <p>and am creating object of this class as below</p>
  
  <pre><code>public void collection()
  {
  
     test t1=new test{i=1,str="string1", s=soc1, dt=DateTime.Today() };
  
     test t2=new test{i=2,str="string2", s=soc2, dt=DateTime.Today() };
  
     test t3=new test{i=3,str="string3", s=soc3, dt=DateTime.Today() };
  
     ArraList a=new ArrayList();
  
     a.Add(t1);
  
     a.Add(t2);
  
     a.Add(t3);
  
  }
  </code></pre>
  
  <p>and am adding all these objects(<code>t1</code>,<code>t2</code>,<code>t3</code>) into an array. Now, how can i get all socket members in object array using linq???</p>