title: How can i validate this attribute(annonation)?
body: <p>I am new about attributes. I just try it on my console application.</p>
  
  <p>So how can i validate my person instance below example ?</p>
  
  <pre><code>class Person
      {
          [StringLength(8,ErrorMessage="Please less then 8 character")]
          public string Name { get; set; }
  
      }
  </code></pre>