title: Validating properties in c#
body: <p>let's suggest I got an interface and inherit class from it, </p>
  
  <pre><code>internal interface IPersonInfo
  {
      String FirstName { get; set; }
      String LastName { get; set; }
  }
  internal interface IRecruitmentInfo
  {
      DateTime RecruitmentDate { get; set; }
  }
  
  public abstract class Collaborator : IPersonInfo, IRecruitmentInfo
  {
      public DateTime RecruitmentDate
      {
          get;
          set;
      }
      public String FirstName
      {
          get;
          set;
      }
      public String LastName
      {
          get;
          set;
      }
      public abstract Decimal Salary
      {
          get;
      }
  }
  </code></pre>
  
  <p>then how do I validate strings in collaborator class? Is it possible to implement inside properties?</p>