15 writes to Default
System.Private.Xml (15)
System\Xml\Serialization\Mappings.cs (1)
176
newAccessor.
Default
= this.Default;
System\Xml\Serialization\SoapReflectionImporter.cs (1)
707
attribute.
Default
= GetDefaultValue(model.FieldTypeDesc, a);
System\Xml\Serialization\XmlReflectionImporter.cs (7)
1611
attribute.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1658
element.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1709
element.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1789
attribute.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1831
element.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1899
element.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1952
element.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
System\Xml\Serialization\XmlSchemaImporter.cs (6)
302
accessor.
Default
= element.DefaultValue;
306
accessor.
Default
= element.FixedValue;
1639
accessor.
Default
= defaultValueProvider.DefaultValue;
1643
accessor.
Default
= defaultValueProvider.FixedValue;
1650
accessor.
Default
= attribute.DefaultValue;
1654
accessor.
Default
= attribute.FixedValue;
23 references to Default
System.Private.Xml (23)
System\Xml\Serialization\Mappings.cs (1)
176
newAccessor.Default = this.
Default
;
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
868
else if ((element.
Default
!= null && element.
Default
!= DBNull.Value && element.Mapping.TypeDesc!.IsValueType)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (4)
387
WritePrimitive(WritePrimitiveMethodRequirement.WriteElementString, name, ns!, element.
Default
, o!, element.Mapping, false);
395
WriteQualifiedNameElement(name, ns!, element.
Default
, (XmlQualifiedName)o!, element.IsNullable, mapping.IsSoap, mapping);
415
name, ns!, element.
Default
, o!, mapping, mapping.IsSoap);
889
WritePrimitive(WritePrimitiveMethodRequirement.WriteAttribute, attribute.Name, ns, attribute.
Default
, memberValue, attribute.Mapping!, false);
System\Xml\Serialization\XmlReflectionImporter.cs (2)
335
string? value1 = Convert.ToString(accessor.
Default
, CultureInfo.InvariantCulture);
336
string? value2 = Convert.ToString(existing.
Default
, CultureInfo.InvariantCulture);
System\Xml\Serialization\XmlSchemaExporter.cs (2)
796
attribute.DefaultValue = ExportDefaultValue(accessor.Mapping, accessor.
Default
);
824
element.DefaultValue = ExportDefaultValue(accessor.Mapping!, accessor.
Default
);
System\Xml\Serialization\XmlSerializationReader.cs (2)
4664
if (element.
Default
!= null && element.
Default
!= DBNull.Value && element.Mapping.TypeDesc!.IsValueType)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
3020
if (element.
Default
!= null && element.
Default
!= DBNull.Value && element.Mapping.TypeDesc!.IsValueType)
System\Xml\Serialization\XmlSerializationWriter.cs (4)
3479
WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", attribute.
Default
, source, attribute.Mapping, false, false, false);
4070
WritePrimitive("WriteElementString", name, ns, element.
Default
, source, element.Mapping, false, true, element.IsNullable);
4076
WriteQualifiedNameElement(name, ns, element.
Default
, source, element.IsNullable, primitiveMapping.IsSoap, primitiveMapping);
4082
name, ns, element.
Default
, source, primitiveMapping, primitiveMapping.IsSoap, true, element.IsNullable);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (4)
1381
WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", GetConvertedDefaultValue(source.Type, attribute.
Default
), source, attribute.Mapping, false, false, false);
1973
WritePrimitive("WriteElementString", name, ns, element.
Default
, source, element.Mapping, false, true, element.IsNullable);
1979
WriteQualifiedNameElement(name, ns, GetConvertedDefaultValue(source.Type, element.
Default
), source, element.IsNullable, primitiveMapping);
1985
name, ns, GetConvertedDefaultValue(source.Type, element.
Default
), source, primitiveMapping, false, true, element.IsNullable);