Mono Class Library: System.CodeDom Namespace

System.CodeDom.CodeSnippetStatement Class

Represents a literal code statement in the CodeDOM. [Edit]

See Also: CodeSnippetStatement Members

System.Object
     System.CodeDom.CodeObject
          System.CodeDom.CodeStatement
               System.CodeDom.CodeSnippetStatement

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

Remarks

While the System.CodeDOM.CodeSnippetStatement provides a quick and dirty way of adding a Statement to the CodeDOM, its use is not recommended because it reduces the portability of the CodeDOM between language generators. For example,
C# Example
CodeSnippetStatement exp=new CodeSnippetExpression("a+=1");
  
will work fine for the C# generator. However, because the VB.NET language doesn't contain the '+=' operator it'll generate broken code for it. [Edit]

Requirements

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