private void AddCodeComment(CodeTypeMember codeTypeMember, IEnumerable <ICodeCommentEntity> codeComments, bool isDocComment) { if (isDocComment) { CodeCommentStatementCollection descriptionCodeComment = CodeCommentHelper.BuildCodeCommentStatementCollection(codeComments); codeTypeMember.Comments.AddRange(descriptionCodeComment); } else { foreach (var codeComment in codeComments) { CodeCommentStatement descriptionCodeComment = CodeCommentHelper.BuildCodeCommentStatement(codeComment, isDocComment); codeTypeMember.Comments.Add(descriptionCodeComment); } } }