I have VS 2010 with resharper (any version, now 5.1).
The default naming convention coming with R# about public or protected method’s name is: “ThisIsMethodName”, and I think it’s fine.
But, sometimes, the default naming of .NET methods, is not like I’m expecting, for example Page_Load, or (with a button click in webform designer panel) Button1_Click.
As you can see, we have the underscore between words.
Why we have this and how (if it is possible) I can remove all underscores from my solution?
These underscores are created by the default Visual Studio WinForm designer (when you double click on the event name in properties panel VS creates a method with this name). I am not sure what is the convention in WCF. This doesn’t have anything to do with resharper – you will observe the same behaviour if you disable it. I don’t think it is configurable.
You can always rename these methods after they are created (in the usual way – using Resharper).