Skip to content

Instantly share code, notes, and snippets.

@takahisa
Forked from takeshik/a.cs
Created November 2, 2011 11:49
Show Gist options
  • Save takahisa/1333453 to your computer and use it in GitHub Desktop.
Save takahisa/1333453 to your computer and use it in GitHub Desktop.
abstract class X
{
public abstract T Get<T>();
public object P { get { return this.Get<Object>(); } }
}
class X<T> : X
{
public override T Get<T>() { return default(T); }
public T Get() { return this.Get<T>(); }
public new T P { get { return this.Get(); } }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment