Cause:
Static members are part of a type and non-static members are part of an instance of that type. If you want to have a shared state or a function between different instances of the same type, a static member will be helpful. This code issue informs you about an instance member that can be converted into a static member.
Read more…
Here are several of the code issues, which highlight redundant and unnecessary code blocks that may be safely removed for improving code readability.
Here are a few simple code issues of a hint type (suggestion) for declarations and initializations.
Here are the code issues for different expressions. If the fix is applied, following a hint it may optimize the code and/or improve its readability.
Here are the suggestions (hints) code issues which might improve the readability, clarity and performance of your source code.
The Hints DXCore service provides access to hinting services for showing/hiding Shortcut hints, BigFeedback hints, and other discoverability services.
Read more…
Overview
The Instellassist feature of DevExpress CodeRush Pro is similar to the built-in Intellisence feature of Visual Studio. It provides additional hints that pop up as you type the code and completes the edited code with an in-scope identifier or other suggestions. These hints help you select code elements or complete the text you need in the context of what you are working on without retyping the entire text.
Read more…
Cause:
When working with strings that contain multiple lines of text, you have to add newline characters to your strings, so each line is separated with a line break. Line breaks are often added by inserting a carriage return line feed escape characters. This can cause cross-platform compatibility issues, because your code might end up being compiled under Mono in Unix, for example.
The “Environment.NewLine can be used” CodeRush code issue shows a suggestion to convert escape characters (“\r\n“) inside your code into the constant value defined in .NET Framework. Changing these strings to the Environment.NewLine constant will, firstly, improve the code clarity, so you don’t have to use escape characters, and, secondly, fix potential platforms portability issues – so, you don’t have to be concerned about such problems.
Read more…