System.CodeDom.CodeCommentStatementCollection.Add C# (CSharp) Method

Add() public method

public Add ( CodeCommentStatement value ) : int
value CodeCommentStatement
return int
        public int Add(CodeCommentStatement value) {
            return List.Add(value);
        }
        

Usage Example

Beispiel #1
0
 /// <summary>
 /// Add to CodeCommentStatementCollection summary documentation
 /// </summary>
 /// <param name="codeStatmentColl">Collection of CodeCommentStatement</param>
 /// <param name="comment">summary text</param>
 internal static void CreateSummaryComment(CodeCommentStatementCollection codeStatmentColl, string comment)
 {
     codeStatmentColl.Add(new CodeCommentStatement("<summary>", true));
     string[] lines = comment.Split(new[] { '\n' });
     foreach (string line in lines)
         codeStatmentColl.Add(new CodeCommentStatement(line.Trim(), true));
     codeStatmentColl.Add(new CodeCommentStatement("</summary>", true));
 }
All Usage Examples Of System.CodeDom.CodeCommentStatementCollection::Add