title: Filtering unique data with Column combinations in C#
body: <p>I have a list as following:</p>
  
  <pre><code> public class MyClass
   {
      public int val1;
      public long val2;
      public string val3;
   }
  class Program
  {
      static void Main(string[] args)
      {
          List&lt;MyClass&gt; lstData=new List&lt;MyClass&gt;
          {
              new MyClass{val1=1,val2=2,val3="AA"},
              new MyClass{val1=1,val2=2,val3="BB"},
              new MyClass{val1=3,val2=4,val3="AA"},
              new MyClass{val1=3,val2=4,val3="BB"},
              new MyClass{val1=1,val2=2,val3="BB"},
              new MyClass{val1=3,val2=4,val3="AA"},
  
          };
      }
  }
  </code></pre>
  
  <p>I want to get unique rows out of the list.In the above example following  lists are duplicate</p>
  
  <pre><code>{val1=1,val2=2,val3="BB"}
   {val1=3,val2=4,val3="AA"}
  </code></pre>
  
  <p>I want to eliminate the duplicate rows and get the distinct rows out of the list.
  How I can do that?</p>