<p>I have a marker interface defined as</p>

<pre><code>public interface IExtender&lt;T&gt;
{
}
</code></pre>

<p>I have a class that implements IExtender</p>

<pre><code>public class UserExtender : IExtender&lt;User&gt;
</code></pre>

<p>At runtime I recieve the UserExtender type as a parameter to my evaluating method</p>

<pre><code>public Type Evaluate(Type type) // type == typeof(UserExtender)
</code></pre>

<p>How do I make my Evaluate method return </p>

<pre><code>typeof(User)
</code></pre>

<p>based on the runtime evaluation. I am sure reflection is involved but I can't seem to crack it.</p>

<p>(I was unsure how to word this question. I hope it is clear enough.)</p>

there's a maxlength attribute
```
```
<input type="text" name="textboxname" maxlength="100" />
```
```