I like to make the first letter of private methods, properties and events lowercase and the first letter of public methods, properties and events uppercase. However, in ReSharper 7.1 there is only one option under C# naming style that applies all methods, properties and events. What is the best way to tell ReSharper to use a different convention for private only?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can create your own Naming Style Rule.
Resharper Options => Code Editing => [Language] => Naming Style => Advanced Options => +Add...
Verified that the requested functionality is possible using this option.