Mono Class Library: System.CodeDom.CodeCommentStatement Overview | Members

System.CodeDom.CodeCommentStatement Constructor

Creates a System.CodeDom.CodeCommentStatement with the CodeCommentStatement.Comment property initialized to the specified string. [Edit]

public CodeCommentStatement (string text)

Parameters

text
String the Comment property of this object is to be initialized to. [Edit]

Remarks

C# Example
		demoNs.Comments.Add(new CodeCommentStatement("This is a test"));
  
generates the code
C# Example
// This is a test
  
[Edit]

Requirements

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