Nah, there shouldn't be a huge difference in performance. A Func either compiles to a static or instance method depending on whether you use closures.
However, if you can inline the Func
code it can increase performance.. maybe. Not sure how to do that though.
By inline, I'm referring to the inline
keyword we can have in C++. It tells the compiler to embed the function instructions in that code block. I'm not sure if C# offers that benefit.
Btw, if the private method really belongs to a method block that can be reusable and you are using Func
for the sake of performance increase, I'd refactor it back to the way it was.