ReSharper C# naming style for private methods and properties

橙三吉。 提交于 2019-12-14 03:39:57

问题


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.



来源:https://stackoverflow.com/questions/20479162/resharper-c-sharp-naming-style-for-private-methods-and-properties

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!