This is a migrated thread and some comments may be shown as answers.

C# Class Level Variable Naming Convention

1 Answer 76 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joel Palmer
Top achievements
Rank 2
Joel Palmer asked on 12 Sep 2012, 02:03 PM
Our standard for private class level variables in C# is to start them with an underscore:

_camelCase.

How do I configure JC to consider this valid?

1 Answer, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 17 Sep 2012, 07:56 AM
Hi Joel,

 Thanks for contacting us.
You can add additional rule or change the current one in order to set it as a valid one.
You will find these settings at JustCode menu -> Options -> Code Style -> desired language (e.g. C#) -> Naming Conventions and there add or change the rule. In your case it should be Private fields.
Thanks.

Please, do not hesitate to contact us if you have any further questions or need of assistance.

Regards,
Zdravko
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Tags
Code Analysis
Asked by
Joel Palmer
Top achievements
Rank 2
Answers by
Zdravko
Telerik team
Share this question
or