System.CodeDom.CodeNamespace.Comments Property

Gets the comments for the namespace.

Syntax

public CodeCommentStatementCollection Comments { get; }

Value

System.CodeDom.CodeCommentStatementCollection object, which is a collection of comments on the namespace.

Remarks

C# Example

/*	Creates namespace like thus when c# code is generated.
/*	// Demo Namespace
/*	namespace Mono.CodeDomDemo {
/*
/*	}
...
CodeNamespace demoNs= new CodeNamespace("Mono.CodeDomDemo");
demoNs.Comments.Add(new CodeCommentStatement("Demo Namespace"));
...

Requirements

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