title: How compare if any property is different value?
body: <p>I have a class</p>
  
  <pre><code>public class myObject 
  {
     public decimal Prop1 {get;set;}
     public decimal Prop2 {get;set;}
     public decimal Prop3 {get;set;}
  }
  </code></pre>
  
  <p>how i compare if Porp1,Prop2 or Prop3 has different value?</p>
  
  <pre><code>var obj1 = new myObject();
  obj1.Prop1 = 1;
  obj1.Prop2 = 1;
  obj1.Prop3 = 1;
  </code></pre>
  
  <p>my obj1 has all equals properties </p>
  
  <p>My implmentation:</p>
  
  <pre><code>public bool Test()
  {
     if(Prop1 == Prop2)
     {
         return true;
     }
     if(Prop1 == Prop3)
     {
         return true;
     }
     if(Prop2 == Prop1)
     {
         return true;
     }
    if(Prop2 == Prop3)
     {
         return true;
     }
  
  }
  </code></pre>