Archive

Posts Tagged ‘Errors’

Code Issues – Undeclared element

October 18th, 2012 Comments off

Cause:

Highlights identifier references to local variables, fields, method, properties, classes, structures, interfaces and everything that is not yet declared.

Read more…

Code Issues – Format item index too large

October 18th, 2012 Comments off

Cause:

In the String.Format call you can specify any number of arguments and the corresponding format items, where those argument values will be inlined. When the corresponding argument in the call is absent, the FormatException will be thrown (Index (zero based) must be greater than or equal to zero and less than the size of the argument list). The compiler does not validate the format items, so this may lead to errors in your application. This code issue allows you to avoid such errors by highlighting format items with an incorrect index.

Read more…

Code Issues – Control cannot leave the body of a finally clause

October 18th, 2012 Comments off

Cause:

Returns are forbidden in finally clauses by the compiler. A compiler error will occur in case of a return statement inside a finally block, and refuse to let you write such potentially ambiguous and confusing code. The purpose of a finally statement is to ensure that the necessary cleanup of objects happens immediately and always. In other words, it is designed for releasing all locks and resources and cannot leave the block until finishing the cleanup task.

Read more…

CodeRush Code Issues specific to extension methods

July 11th, 2011 Comments off

Extension methods allow developers to expand existing types without having to sub-class, recompile or modify the original type. They were introduced as a feature of CSharp version 3.0 and Visual Basic version 9.0. Such methods are just like static methods invoked by using instance method syntax.

Read more…

Visualization – Spell Checker

October 11th, 2010 Comments off

Spell Checker underlines the misspelled words inside the code editor. It can check spelling in strings, comments, XML comments, and HTML elements against a built-in dictionary. Spell Checker provides an easy way to fix the error using the Refactor! popup menu or a smart tag:

CodeRush Spell Checker

Read more…