U
関数の戻り値に異なるジェネリック パラメーター タイプ ( ) を持ちT
、ローカル パラメーターに別のジェネリック パラメーター タイプを既に持っているようなことは可能ですか?
私が試してみました:
private static U someMethod <T,U>(T type1, Stream s)
と
private static U someMethod <T><U>(T type1, Stream s)
編集: 私たちは試すことに同意しました:
private static U someMethod <T,U>(T type1, Stream s)
public static T someMethodParent<T>(Stream stream)
{
U something = someMethod(type1, stream);
...
}