Mono Class Library: System.CodeDom Namespace

System.CodeDom.CodeSnippetExpression Class

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

See Also: CodeSnippetExpression Members

System.Object
     System.CodeDom.CodeObject
          System.CodeDom.CodeExpression
               System.CodeDom.CodeSnippetExpression

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

Remarks

While the System.CodeDOM.CodeSnippetExpression provides a quick and dirty way of adding an Expression to the CodeDOM, its use is not recommended because it reduces the portability of the CodeDOM between language generators. For example,
C# Example
CodeSnippetExpression exp=new CodeSnippetExpression("a==true");
  
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