I have a C# 4.0 application and inside this application I have lots of unnecessary variables. Like _foo variable inside the below code:
public string Foo() { var _foo = "foo bar"; return _foo; } As I mentioned, situations like this one occur inside lots of methods.
Would lots of unnecessary variables (like the ones I explained in this case) cause performance problem in C#?
Edit:
I am not asking any advice if I should remove them or not. My question is all about performance effect. In fact, the app is not written by me and I am new to this project. I just saw and wonder if it has any perf. effect besides the fact that it has a effect on the quality of the code.