CodeGenerator.ICodeGenerator.GenerateCodeFromExpression Method (CodeExpression, TextWriter, CodeGeneratorOptions)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Generates code for the specified Code Document Object Model (CodeDOM) expression and outputs it to the specified text writer.

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

void ICodeGenerator.GenerateCodeFromExpression(
	CodeExpression e,
	TextWriter w,
	CodeGeneratorOptions o
)

Parameters

e
Type: System.CodeDom.CodeExpression

The expression to generate code for.

w
Type: System.IO.TextWriter

The text writer to output code to.

o
Type: System.CodeDom.Compiler.CodeGeneratorOptions

The options to use for generating code.

Exception Condition
InvalidOperationException

w is not available. w may have been closed before the method call was made.

.NET Framework
Available since 1.1
Return to top
Show: