title: Validate an object using Func<T,bool>
body: <p>I want to write a simple Validate Method like <a href="http://fluentvalidation.codeplex.com/" rel="nofollow">FluentValidation </a></p>
  
  <p>I wrote this simple code:</p>
  
  <pre><code>public static class ExtensionMethods&lt;T&gt; where T : class 
  {
      public static bool Validate(Func&lt;T, bool&gt; expression)
      {
          //What I should write?????
      }
  }
  </code></pre>
  
  <p>I don't know what should I write in method body and how I can use that. </p>
  
  <hr>
  
  <p><strong>EDIT 1</strong> :</p>
  
  <p>I want to write such this code for all objects:</p>
  
  <pre><code>ExtensionMethods&lt;MyObject&gt;.Validate(o=&gt;o.ID == 1).AddMessage(....
  </code></pre>