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)
1587
attribute.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1634
element.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1685
element.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1765
attribute.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1807
element.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1875
element.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1928
element.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
System\Xml\Serialization\XmlSchemaImporter.cs (6)
287
accessor.
Default
= element.DefaultValue;
291
accessor.
Default
= element.FixedValue;
1602
accessor.
Default
= defaultValueProvider.DefaultValue;
1606
accessor.
Default
= defaultValueProvider.FixedValue;
1613
accessor.
Default
= attribute.DefaultValue;
1617
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)
895
else if ((element.
Default
!= null && element.
Default
!= DBNull.Value && element.Mapping.TypeDesc!.IsValueType)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (4)
394
WritePrimitive(WritePrimitiveMethodRequirement.WriteElementString, name, ns!, element.
Default
, o!, element.Mapping, false);
402
WriteQualifiedNameElement(name, ns!, element.
Default
, (XmlQualifiedName)o!, element.IsNullable, mapping.IsSoap, mapping);
422
name, ns!, element.
Default
, o!, mapping, mapping.IsSoap);
902
WritePrimitive(WritePrimitiveMethodRequirement.WriteAttribute, attribute.Name, ns, attribute.
Default
, memberValue, attribute.Mapping!, false);
System\Xml\Serialization\XmlReflectionImporter.cs (2)
322
string? value1 = Convert.ToString(accessor.
Default
, CultureInfo.InvariantCulture);
323
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)
4653
if (element.
Default
!= null && element.
Default
!= DBNull.Value && element.Mapping.TypeDesc!.IsValueType)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
3052
if (element.
Default
!= null && element.
Default
!= DBNull.Value && element.Mapping.TypeDesc!.IsValueType)
System\Xml\Serialization\XmlSerializationWriter.cs (4)
3477
WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", attribute.
Default
, source, attribute.Mapping, false, false, false);
4068
WritePrimitive("WriteElementString", name, ns, element.
Default
, source, element.Mapping, false, true, element.IsNullable);
4074
WriteQualifiedNameElement(name, ns, element.
Default
, source, element.IsNullable, primitiveMapping.IsSoap, primitiveMapping);
4080
name, ns, element.
Default
, source, primitiveMapping, primitiveMapping.IsSoap, true, element.IsNullable);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (4)
1399
WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", GetConvertedDefaultValue(source.Type, attribute.
Default
), source, attribute.Mapping, false, false, false);
1997
WritePrimitive("WriteElementString", name, ns, element.
Default
, source, element.Mapping, false, true, element.IsNullable);
2003
WriteQualifiedNameElement(name, ns, GetConvertedDefaultValue(source.Type, element.
Default
), source, element.IsNullable, primitiveMapping);
2009
name, ns, GetConvertedDefaultValue(source.Type, element.
Default
), source, primitiveMapping, false, true, element.IsNullable);