title: Compare two objects on selected fields in C#
body: <p>Code (that might potentially be pseudocode):</p>
  
  <pre><code>Person p1 = new Person { First = "John", Last = "Smith" };
  Person p2 = new Person { First = "Jane", Last = "Smith" };
  </code></pre>
  
  <p>I'm looking for a way to do this:</p>
  
  <pre><code>bool b1 = Person.CompareOn({"First", "Last"}, p1, p2) // false;
  bool b2 = Person.CompareOn({"Last"}         , p1, p2) // true;
  </code></pre>
  
  <p>Is there a predefined method that does this? Or do I have to write one myself?</p>