我想申请FUNC对象作为转换器是这样的:从函数创建转换器的最佳方法是什么?
Func<int, double> f = x => x/2.5;
Converter<int, double> convert = f;
List<double> applied_list = new List<int>(){1, 2, 3}.ConvertAll(convert);
编译器给了我这样的消息:
错误CS0029无法隐式转换类型 'System.Func' 到 'System.Converter'
使用函数作为转换器的最佳方法是什么?