System.Xml.Serialization.XmlCodeExporter.DropDefaultAttribute C# (CSharp) Method

DropDefaultAttribute() static private method

static private DropDefaultAttribute ( Accessor accessor, CodeCommentStatementCollection comments, string type ) : void
accessor Accessor
comments System.CodeDom.CodeCommentStatementCollection
type string
return void
        static void DropDefaultAttribute(Accessor accessor, CodeCommentStatementCollection comments, string type) {
            if (!accessor.IsFixed && accessor.IsOptional) {
                AddWarningComment(comments, Res.GetString(Res.XmlDropDefaultAttribute, type));
            }
        }