Naming style problem

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


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?




Thank you for contacting us.

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

Thank you.


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


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 -

Thank you.


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


Please sign in to leave a comment.