Skip to content

Instantly share code, notes, and snippets.

@karlseguin
Created April 30, 2010 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karlseguin/385670 to your computer and use it in GitHub Desktop.
Save karlseguin/385670 to your computer and use it in GitHub Desktop.
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