泛型委托,直接上例子:
public delegate TResult Func<in T1, in T2, out TResult>(T1 arg1, T2 arg2);
1、委托:delegate
2、泛型:<in T1, in T2, out TResult>,in关键字表示参数;out关键字表示返回值。PS:对于泛型,模版参数(类型参数)一定要放置在 <> 内部
标签:委托,arg1,arg2,关键字,参数,泛型 From: https://www.cnblogs.com/changbaishan/p/17702408.html