I am a C# programmer.
Yesterday I bought Resharper, which is a program that works in conjunction with Visual Studio and makes suggestions for improving your code.
The suggestion it keeps making is using implicit declaration vs explicit.
For example:
My code is completely explicit:
It suggested that I implicitly declare, as follows:
What do you guys suggest?
Which is faster?
Which is better?
Yesterday I bought Resharper, which is a program that works in conjunction with Visual Studio and makes suggestions for improving your code.
The suggestion it keeps making is using implicit declaration vs explicit.
For example:
My code is completely explicit:
Code:
QuestionMonitorClass qm = new QuestionMonitorClass();
It suggested that I implicitly declare, as follows:
Code:
var qm = new QuestionMonitorClass();
What do you guys suggest?
Which is faster?
Which is better?