Created
October 26, 2011 12:16
-
-
Save takahisa/1316178 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 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