Created
April 30, 2010 19:49
-
-
Save karlseguin/385670 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Parent<T> | |
{ | |
public virtual T Name { get; set; } | |
} | |
public class Child : Parent<string> | |
{ | |
public override string Name { get; set; } | |
} | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var count = typeof (Child).GetProperties().Length; | |
Console.WriteLine(count); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment