System.CodeDom.Compiler.CodeGenerator.GenerateCommentStatement C# (CSharp) Method

GenerateCommentStatement() protected method

protected GenerateCommentStatement ( CodeCommentStatement e ) : void
e CodeCommentStatement
return void
        protected virtual void GenerateCommentStatement(CodeCommentStatement e)
        {
            if (e.Comment == null)
            {
                throw new ArgumentException(SR.Format(SR.Argument_NullComment, nameof(e)), nameof(e));
            }
            GenerateComment(e.Comment);
        }

Usage Example

示例#1
0
 public void Visit(CodeCommentStatement o)
 {
     g.GenerateCommentStatement(o);
 }
CodeGenerator