title: How to make a property required in c#?
body: <p>I have requirement in a custom class where I want to make one of my properties required.</p>
  
  <p>How can I make the following property required?</p>
  
  <pre><code>public string DocumentType
  {
      get
      {
          return _documentType;
      }
      set
      {
          _documentType = value;
      }
  }
  </code></pre>