I am evaluating resharper and I noticed a quirk in the software. I am not sure if this is truly a quirk.
Here’s my code:
var oc = new OracleConnection();
Resharper is suggesting using an Object Initializer for this instead of new keyword. How do you use an object initializer for a connection? Any ideas?
Why don’t you click on the suggestion and Resharper will do the correction for you?
I guess the code you have is something like:
And what Resharper will do if you let it, is: