Skip to content

Instantly share code, notes, and snippets.

@takeshik
Created November 2, 2011 10:12
Show Gist options
  • Save takeshik/1333323 to your computer and use it in GitHub Desktop.
Save takeshik/1333323 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