System.Xml.Serialization.CodeExporter.AddWarningComment C# (CSharp) Method

AddWarningComment() static private method

static private AddWarningComment ( CodeCommentStatementCollection comments, string text ) : void
comments System.CodeDom.CodeCommentStatementCollection
text string
return void
        internal static void AddWarningComment(CodeCommentStatementCollection comments, string text) {
            comments.Add(new CodeCommentStatement(Res.GetString(Res.XmlCodegenWarningDetails, text), false));
        }

Usage Example

 private static void DropDefaultAttribute(Accessor accessor, CodeCommentStatementCollection comments, string type)
 {
     if (!accessor.IsFixed && accessor.IsOptional)
     {
         CodeExporter.AddWarningComment(comments, Res.GetString("XmlDropDefaultAttribute", new object[] { type }));
     }
 }
All Usage Examples Of System.Xml.Serialization.CodeExporter::AddWarningComment