title: Generic Property in C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/271347/making-a-generic-property">Making a generic property</a>  </p>
  </blockquote>
  
  
  
  <p>I'm not quite sure how to do that, but what I would like to do is to create a special type of property that will perform specific tasks at the <code>get</code> and <code>set</code>, and will be defined on generic type.
  For example, when writing this:</p>
  
  <pre><code>MyProp&lt;String&gt; name;
  </code></pre>
  
  <p>a pre-defined <code>get</code> and <code>set</code> will be performed on the string value.</p>
  
  <p>How can that be done?</p>
  
  <p>Thanks!</p>