CodeGenerator::GeneratePrimitiveExpression Method (CodePrimitiveExpression^)

 

Generates code for the specified primitive expression.

Namespace:   System.CodeDom.Compiler
Assembly:  System (in System.dll)

protected:
virtual void GeneratePrimitiveExpression(
	CodePrimitiveExpression^ e
)

Parameters

e
Type: System.CodeDom::CodePrimitiveExpression^

The expression to generate code for.

Exception Condition
ArgumentException

e uses an invalid data type. Only the following data types are valid:

  • string

  • char

  • byte

  • Int16

  • Int32

  • Int64

  • Single

  • Double

  • Decimal

.NET Framework
Available since 1.1
Return to top
Show: