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)
1611attribute.Default = GetDefaultValue(model.FieldTypeDesc, model.FieldType, a); 1658element.Default = GetDefaultValue(model.FieldTypeDesc, model.FieldType, a); 1709element.Default = GetDefaultValue(model.FieldTypeDesc, model.FieldType, a); 1789attribute.Default = GetDefaultValue(model.FieldTypeDesc, model.FieldType, a); 1831element.Default = GetDefaultValue(model.FieldTypeDesc, model.FieldType, a); 1899element.Default = GetDefaultValue(model.FieldTypeDesc, model.FieldType, a); 1952element.Default = GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
System\Xml\Serialization\XmlSchemaImporter.cs (6)
302accessor.Default = element.DefaultValue; 306accessor.Default = element.FixedValue; 1639accessor.Default = defaultValueProvider.DefaultValue; 1643accessor.Default = defaultValueProvider.FixedValue; 1650accessor.Default = attribute.DefaultValue; 1654accessor.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)
868else if ((element.Default != null && element.Default != DBNull.Value && element.Mapping.TypeDesc!.IsValueType)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (4)
387WritePrimitive(WritePrimitiveMethodRequirement.WriteElementString, name, ns!, element.Default, o!, element.Mapping, false); 395WriteQualifiedNameElement(name, ns!, element.Default, (XmlQualifiedName)o!, element.IsNullable, mapping.IsSoap, mapping); 415name, ns!, element.Default, o!, mapping, mapping.IsSoap); 889WritePrimitive(WritePrimitiveMethodRequirement.WriteAttribute, attribute.Name, ns, attribute.Default, memberValue, attribute.Mapping!, false);
System\Xml\Serialization\XmlReflectionImporter.cs (2)
335string? value1 = Convert.ToString(accessor.Default, CultureInfo.InvariantCulture); 336string? 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)
4664if (element.Default != null && element.Default != DBNull.Value && element.Mapping.TypeDesc!.IsValueType)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
3020if (element.Default != null && element.Default != DBNull.Value && element.Mapping.TypeDesc!.IsValueType)
System\Xml\Serialization\XmlSerializationWriter.cs (4)
3479WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", attribute.Default, source, attribute.Mapping, false, false, false); 4070WritePrimitive("WriteElementString", name, ns, element.Default, source, element.Mapping, false, true, element.IsNullable); 4076WriteQualifiedNameElement(name, ns, element.Default, source, element.IsNullable, primitiveMapping.IsSoap, primitiveMapping); 4082name, ns, element.Default, source, primitiveMapping, primitiveMapping.IsSoap, true, element.IsNullable);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (4)
1381WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", GetConvertedDefaultValue(source.Type, attribute.Default), source, attribute.Mapping, false, false, false); 1973WritePrimitive("WriteElementString", name, ns, element.Default, source, element.Mapping, false, true, element.IsNullable); 1979WriteQualifiedNameElement(name, ns, GetConvertedDefaultValue(source.Type, element.Default), source, element.IsNullable, primitiveMapping); 1985name, ns, GetConvertedDefaultValue(source.Type, element.Default), source, primitiveMapping, false, true, element.IsNullable);