Using underscore in method names?

Hi,

As I read previous discussions, an underscore should not result in an "Inconsistent naming" when using 5.1?

But my methods in Global.asax.cs (e.g. "Application_Start") gets this error. How can I allow this but still keep ReSharper checking of general naming?

3 comments
Comment actions Permalink

Omg - apparantly I didn't read the right thread:

http://devnet.jetbrains.net/thread/280646?tstart=0

-and my problems have gone away

0
Comment actions Permalink

Hello Werner,

Please navigate to ReSharper | Options | Languages | Common | Naming Style,
press 'Advanced settings...' and change the value of 'Event subscription
on fields' from '$event$_On$object$' to '$event$_$object$'. Let me know if
this helps.

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi,

As I read previous discussions, an underscore should not result in an
"Inconsistent naming" when using 5.1?

I have some events generated by VS2008, e.g.
"StartUp_TransportMessageReceived" which ReSharper wants to rename
without the underscore. How can I allow this but still keep ReSharper
checking of general naming?

---
Original message URL:
http://devnet.jetbrains.net/message/5276417#5276417



0
Comment actions Permalink

Thanks, yes I got my issue solved.

0

Please sign in to leave a comment.