15 writes to Default
System.Private.Xml (15)
System\Xml\Serialization\Mappings.cs (1)
176newAccessor.Default = this.Default;
System\Xml\Serialization\SoapReflectionImporter.cs (1)
707attribute.Default = GetDefaultValue(model.FieldTypeDesc, a);
System\Xml\Serialization\XmlReflectionImporter.cs (7)
1587attribute.Default = GetDefaultValue(model.FieldTypeDesc, model.FieldType, a); 1634element.Default = GetDefaultValue(model.FieldTypeDesc, model.FieldType, a); 1685element.Default = GetDefaultValue(model.FieldTypeDesc, model.FieldType, a); 1765attribute.Default = GetDefaultValue(model.FieldTypeDesc, model.FieldType, a); 1807element.Default = GetDefaultValue(model.FieldTypeDesc, model.FieldType, a); 1875element.Default = GetDefaultValue(model.FieldTypeDesc, model.FieldType, a); 1928element.Default = GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
System\Xml\Serialization\XmlSchemaImporter.cs (6)
287accessor.Default = element.DefaultValue; 291accessor.Default = element.FixedValue; 1602accessor.Default = defaultValueProvider.DefaultValue; 1606accessor.Default = defaultValueProvider.FixedValue; 1613accessor.Default = attribute.DefaultValue; 1617accessor.Default = attribute.FixedValue;
23 references to Default
System.Private.Xml (23)
System\Xml\Serialization\Mappings.cs (1)
176newAccessor.Default = this.Default;
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
895else if ((element.Default != null && element.Default != DBNull.Value && element.Mapping.TypeDesc!.IsValueType)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (4)
394WritePrimitive(WritePrimitiveMethodRequirement.WriteElementString, name, ns!, element.Default, o!, element.Mapping, false); 402WriteQualifiedNameElement(name, ns!, element.Default, (XmlQualifiedName)o!, element.IsNullable, mapping.IsSoap, mapping); 422name, ns!, element.Default, o!, mapping, mapping.IsSoap); 902WritePrimitive(WritePrimitiveMethodRequirement.WriteAttribute, attribute.Name, ns, attribute.Default, memberValue, attribute.Mapping!, false);
System\Xml\Serialization\XmlReflectionImporter.cs (2)
322string? value1 = Convert.ToString(accessor.Default, CultureInfo.InvariantCulture); 323string? value2 = Convert.ToString(existing.Default, CultureInfo.InvariantCulture);
System\Xml\Serialization\XmlSchemaExporter.cs (2)
796attribute.DefaultValue = ExportDefaultValue(accessor.Mapping, accessor.Default); 824element.DefaultValue = ExportDefaultValue(accessor.Mapping!, accessor.Default);
System\Xml\Serialization\XmlSerializationReader.cs (2)
4653if (element.Default != null && element.Default != DBNull.Value && element.Mapping.TypeDesc!.IsValueType)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
3052if (element.Default != null && element.Default != DBNull.Value && element.Mapping.TypeDesc!.IsValueType)
System\Xml\Serialization\XmlSerializationWriter.cs (4)
3477WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", attribute.Default, source, attribute.Mapping, false, false, false); 4068WritePrimitive("WriteElementString", name, ns, element.Default, source, element.Mapping, false, true, element.IsNullable); 4074WriteQualifiedNameElement(name, ns, element.Default, source, element.IsNullable, primitiveMapping.IsSoap, primitiveMapping); 4080name, ns, element.Default, source, primitiveMapping, primitiveMapping.IsSoap, true, element.IsNullable);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (4)
1399WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", GetConvertedDefaultValue(source.Type, attribute.Default), source, attribute.Mapping, false, false, false); 1997WritePrimitive("WriteElementString", name, ns, element.Default, source, element.Mapping, false, true, element.IsNullable); 2003WriteQualifiedNameElement(name, ns, GetConvertedDefaultValue(source.Type, element.Default), source, element.IsNullable, primitiveMapping); 2009name, ns, GetConvertedDefaultValue(source.Type, element.Default), source, primitiveMapping, false, true, element.IsNullable);