Skip to content

Instantly share code, notes, and snippets.

@takahisa
Created October 26, 2011 12:16
Show Gist options
  • Save takahisa/1316178 to your computer and use it in GitHub Desktop.
Save takahisa/1316178 to your computer and use it in GitHub Desktop.
// こんな感じのクラスを作って
abstract class Super<T> {
public abstract Super<U> Foo<U>(Func<T,U> map);
}
// Super<T>を継承したSub<T>を作って、それを実装する時
class Sub<T> : Super<T> {
   // ↓こうなるのを
public override Super<U> Foo<U>(Func<T,U> map) { ... }
// こんな風にしたい
public override Sub<U> Foo<U>(Func<T,U> map){ ... }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment