System.Xml.Serialization.XmlCodeExporter.DropDefaultAttribute C# (CSharp) Méthode

DropDefaultAttribute() static private méthode

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