Posts Tagged ‘Classes’

Quick Navigation inside Visual Studio using CodeRush

September 27th, 2012 1 comment

The Quick Navigation feature allows you to find any code members inside your solution, such as classes, interfaces, structures, enumerations, delegates, methods, properties, events, fields locals and parameters. Once you hit the Ctrl+Shift+Q shorcut, the simplified Quick Navigation window will appear by default:

CodeRush Quick Navigation Default Window

Read more…

CodeRush code generation features for declaring types

June 1st, 2012 Comments off

The following code declaration features are available in CodeRush for generating new type declarations (in alphabetical order). Click on the name to learn more about a specific code provider.

Create Ancestor

Creates an ancestor class for an active type. Active type becomes a descendant of the created ancestor class.

Create Descendant

Creates a descendant class providing overrides for abstract members.

Read more…

Declare Attribute CodeRush code provider

June 1st, 2012 2 comments

Attributes provide a powerful method of associating declarative information by decorating elements of the code, such as types, methods, properties, parameters and assemblies. Once an attribute is associated with a program entity, it can be queried at run time and used in various cases, for example, associating a help document with program entities (via the Help attribute), or marking an item as out of date (via the Obsolete attribute).

Read more…

Specific CodeRush code providers for declaring new classes

June 1st, 2012 Comments off

CodeRush provides code providers for declaring classes, such as:

Read more…

Code Issues specific for static classes

June 23rd, 2011 Comments off

A static class can be used as a unit of organization for sets of utility functions that operate on input parameters and do not have to get or set any internal data. These functions can be accessed without creating an instance of the class. In this case, a static class can make your implementation simpler and faster because you do not have to create an object in order to call its methods.

Read more…

Code Providers – Seal Class

January 16th, 2011 1 comment

This is one of the simplest code provider operations which simply marks the active class as ‘sealed’ (CSharp) or ‘NotInheritable‘ (Visual Basic). The sealed modifier is used to prevent inheriting from a class. For example, this can be useful when creating ‘helper’ classes containing utility methods that should never be extended by overriding the existing functionality. Another benefit of this code provider is that it enables a hypothetical run-time optimization, because having a sealed class known to never have any derivations; it is possible for the compiler to transform virtual function member invocations into non-virtual which take less time to perform.

Read more…

Code Gen – Declare Class

November 5th, 2010 Comments off

Declare Class code provider generates a class for the current type reference to a non-existent type. If the type reference on the editor caret creates a new instance of a non-existent type that takes some arguments, the appropriate constructor is generated for the new class.


CodeRush Declare Class

Read more…