3 writes to DefaultValue
System.Private.Xml (3)
System\Xml\Schema\Preprocessor.cs (1)
452space.DefaultValue = "preserve";
System\Xml\Schema\XsdBuilder.cs (1)
1261builder._attribute!.DefaultValue = value;
System\Xml\Serialization\XmlSchemaExporter.cs (1)
796attribute.DefaultValue = ExportDefaultValue(accessor.Mapping, accessor.Default);
25 references to DefaultValue
System.Data.Common (1)
System\Data\XMLSchema.cs (1)
2343string? strDefault = (attrib.Use == XmlSchemaUse.Required) ? GetMsdataAttribute(attr, Keywords.MSD_DEFAULTVALUE) : attr.DefaultValue;
System.Private.Xml (23)
System\Xml\Core\XsdValidatingReader.cs (1)
2375originalStringValue = schemaAttr.DefaultValue ?? schemaAttr.FixedValue!;
System\Xml\Core\XsdValidatingReaderAsync.cs (1)
701originalStringValue = schemaAttr.DefaultValue ?? schemaAttr.FixedValue!;
System\Xml\Schema\Preprocessor.cs (2)
1216if (attribute.DefaultValue != null && attribute.FixedValue != null) 1220if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != XmlSchemaUse.None)
System\Xml\Schema\SchemaCollectionCompiler.cs (7)
2004if (xa.DefaultValue != null) 2022else if (a.DefaultValue != null) 2024if (xa.DefaultValue == null && xa.FixedValue == null) 2027decl.DefaultValueRaw = decl.DefaultValueExpanded = a.DefaultValue; 2066if (xa.DefaultValue != null || xa.FixedValue != null) 2068if (xa.DefaultValue != null) 2071decl.DefaultValueRaw = decl.DefaultValueExpanded = xa.DefaultValue;
System\Xml\Schema\SchemaCollectionpreProcessor.cs (2)
888if (attribute.DefaultValue != null && attribute.FixedValue != null) 892if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != XmlSchemaUse.None)
System\Xml\Schema\SchemaSetCompiler.cs (5)
2445if (a.FixedValue == null && a.DefaultValue == null) 2451if (xa.DefaultValue != null) 2522if (xa.DefaultValue != null || xa.FixedValue != null) 2524if (xa.DefaultValue != null) 2527decl.DefaultValueRaw = decl.DefaultValueExpanded = xa.DefaultValue;
System\Xml\Serialization\SchemaObjectWriter.cs (1)
303WriteAttribute(@"default", @"", ((string?)o.@DefaultValue));
System\Xml\Serialization\XmlSchemaImporter.cs (4)
1637if (defaultValueProvider.DefaultValue != null) 1639accessor.Default = defaultValueProvider.DefaultValue; 1648if (attribute.DefaultValue != null) 1650accessor.Default = attribute.DefaultValue;
System.Private.Xml.Linq (1)
System\Xml\Schema\XNodeValidator.cs (1)
137return saCopy.DefaultValue;