System.CodeDom.CodeSnippetStatement Class

Represents a statement using a literal code fragment.

See Also: CodeSnippetStatement Members


public class CodeSnippetStatement : CodeStatement


System.CodeDom.CodeSnippetStatement can represent a statement using a literal code fragment that will be included directly in the source without modification.

A System.CodeDom.CodeSnippetStatement stores a section of code exactly in its original format as a string. The CodeDOM does not translate literal code fragments. Literal code fragments are stored and output in their original format. CodeDOM objects that contain literal code are provided so developers can encapsulate code that is already in the target language.

The CodeSnippetStatement.Value property contains the literal code for the snippet statement.


Namespace: System.CodeDom
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,,