Archive

Posts Tagged ‘Consume-first declaration’

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…

MVC-specific CodeRush code declaration providers

September 21st, 2012 Comments off

There are three code generation providers specific to MVC. They allow you to declare MVC controllers, MVC actions and MVC views correspondingly:

  • Declare Controller
  • Declare Action
  • Declare View

Read more…

Declaring events and event handlers using CodeRush

September 21st, 2012 Comments off

With the help of CodeRush we can declare everything starting from undeclared local variables and members to undeclared objects like classes and structures. Here, we will take a look at the code declaration providers for declaring events and event handlers:

  • Declare Event
  • Declare Event Handler

Read more…

Declaring methods and constructors using CodeRush

September 21st, 2012 Comments off

When writing a new code, it usually implies writing a not-declared code like a method invocation, property calls, etc. To help you quickly create the required declarations, there are a lot of code generation providers for declaring methods, properties, fields, locals and everything else. Let’s review the method and constructor code declaration providers:

  • Declare Constructor
  • Declare Method
  • Declare Method (abstract)

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…

Declare Delegate CodeRush code provider

June 1st, 2012 Comments off

A delegate is a special kind of object that holds a reference to a method. Once a delegate is assigned a method, it behaves exactly like that method. It can have parameters and a return value. Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate object.

Read more…