Export (0) Print
Expand All

ICodeGenerator Members

Defines an interface for generating code.

The following tables list the members exposed by the ICodeGenerator type.

  Name Description
Public method CreateEscapedIdentifier Creates an escaped identifier for the specified value.
Public method CreateValidIdentifier Creates a valid identifier for the specified value.
Public method GenerateCodeFromCompileUnit Generates code for the specified Code Document Object Model (CodeDOM) compilation unit and outputs it to the specified text writer using the specified options.
Public method GenerateCodeFromExpression Generates code for the specified Code Document Object Model (CodeDOM) expression and outputs it to the specified text writer.
Public method GenerateCodeFromNamespace Generates code for the specified Code Document Object Model (CodeDOM) namespace and outputs it to the specified text writer using the specified options.
Public method GenerateCodeFromStatement Generates code for the specified Code Document Object Model (CodeDOM) statement and outputs it to the specified text writer using the specified options.
Public method GenerateCodeFromType Generates code for the specified Code Document Object Model (CodeDOM) type declaration and outputs it to the specified text writer using the specified options.
Public method GetTypeOutput Gets the type indicated by the specified CodeTypeReference.
Public method IsValidIdentifier Gets a value that indicates whether the specified value is a valid identifier for the current language.
Public method Supports Gets a value indicating whether the generator provides support for the language features represented by the specified GeneratorSupport object.
Public method ValidateIdentifier Throws an exception if the specified value is not a valid identifier.
Top

Community Additions

ADD
Show:
© 2014 Microsoft