Creates a System.CodeDom.CodeCommentStatement with the CodeCommentStatement.Comment property initialized to the specified string.
- text
- String the Comment property of this object is to be initialized to.
generates the codeC# Example
demoNs.Comments.Add(new CodeCommentStatement("This is a test"));C# Example
// This is a test
Namespace: System.CodeDom
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0