Naming style problem

when I create a property in C# and use the word Room I get a warning.

example:

public string RoomLength { get; set; } - I get an error message, it wants me to change it to Length and delete the Room prefix,

 

public string Length { get; set; } - this is OK.

 

can you help me?

4 comments

Hello!

 

Thank you for contacting us.

Please try disabling ReSharper | Options | Code Editing | C# | Naming Style | Use auto-detected rules option.

Thank you.

0

when I disable Use auto-detected rules option it works, but what if I want to use ReSharper?

0

Hello Liraz!

 

This option doesn't affect ReSharper in general, with this option enabled ReSharper detects and uses naming rules from the existing code and when this option is disabled ReSharper uses default naming style.

Please refer to the following help article for more details - https://www.jetbrains.com/help/resharper/Coding_Assistance__Naming_Style.html#using-naming-rules-from-existing.

Thank you.

0

I'm not able to disable naming rules from existing code.

0

Please sign in to leave a comment.