Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 28th, 2012  |  syntax: None  |  size: 0.27 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. abstract class X
  2. {
  3.     public abstract T Get<T>();
  4.     public object P { get { return this.Get<Object>(); } }
  5. }
  6.  
  7. class X<T> : X
  8. {
  9.     public override T Get<T>() { return default(T); }
  10.     public T Get() { return this.Get<T>(); }
  11.     public new T P { get { return this.Get(); } }
  12. }