System.CodeDom.CodeSnippetStatement Class

Represents a statement using a literal code fragment.

See Also: CodeSnippetStatement Members

Syntax

[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
public class CodeSnippetStatement : CodeStatement

Remarks

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.

Requirements

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