This documentation is archived and is not being maintained.

11.10 New Expressions

Visual Studio .NET 2003

The New operator is used to create new instances of types. There are three forms of New expressions:

  • Object-creation expressions are used to create new instances of class types and value types.
  • Array-creation expressions are used to create new instances of array types.
  • Delegate-creation expressions are used to create new instances of delegate types.

A New expression is classified as a value and the result is the new instance of the type.

NewExpression ::=
   ObjectCreationExpression |
   ArrayCreationExpression |
   DelegateCreationExpression

See Also

11.4 Simple Expressions | 11.8 Invocation Expressions | 11.6 Member Access Expressions | 11.9 Index Expressions | 11.11 Cast Expressions | 11.12 Operator Expressions | 11.3 Late-Binding Expressions | 9.2.5.2 Reference Parameters

Show: