-
-
Save takahisa/1333453 to your computer and use it in GitHub Desktop.
This file contains 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
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