C#: Func<> instead of methods? [duplicate]
问题 This question already has answers here : Func Delegate vs Function (6 answers) Closed 6 years ago . This is a curiosity questions for you all in the know: Is there any harm/downside to using a Func instead of a method? Simple example: private static Func<int, int, DBContext, List<T>> Foo = (i1, i2, dbc) => (i1 != 0) ? dbc.Bar(i2) : new List<T> { /*some default values ...*/ }; Vs private static List<T> Foo(int i1, int i2, DBContext dbc) { return i1 != 0 ? dbc.Bar(i2) : new List<T> { /*some