15 writes to Default
System.Xml (15)
System\Xml\Serialization\Mappings.cs (1)
149
newAccessor.
Default
= this.Default;
System\Xml\Serialization\SoapReflectionImporter.cs (1)
653
attribute.
Default
= GetDefaultValue(model.FieldTypeDesc, a);
System\Xml\Serialization\XmlReflectionImporter.cs (7)
1392
attribute.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1435
element.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1481
element.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1553
attribute.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1589
element.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1646
element.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
1697
element.
Default
= GetDefaultValue(model.FieldTypeDesc, model.FieldType, a);
System\Xml\Serialization\XmlSchemaImporter.cs (6)
318
accessor.
Default
= element.DefaultValue;
321
accessor.
Default
= element.FixedValue;
1522
accessor.
Default
= defaultValueProvider.DefaultValue;
1525
accessor.
Default
= defaultValueProvider.FixedValue;
1530
accessor.
Default
= attribute.DefaultValue;
1533
accessor.
Default
= attribute.FixedValue;
19 references to Default
System.Xml (19)
System\Xml\Serialization\Mappings.cs (1)
149
newAccessor.Default = this.
Default
;
System\Xml\Serialization\XmlCodeExporter.cs (2)
637
AddDefaultValueAttribute(field, metadata, attribute.
Default
, mapping, comments, member.TypeDesc, attribute, ctor);
677
AddDefaultValueAttribute(field, metadata, element.
Default
, mapping, comments, member.TypeDesc, element, ctor);
System\Xml\Serialization\XmlReflectionImporter.cs (2)
297
string value1 = Convert.ToString(accessor.
Default
, CultureInfo.InvariantCulture);
298
string value2 = Convert.ToString(existing.
Default
, CultureInfo.InvariantCulture);
System\Xml\Serialization\XmlSchemaExporter.cs (2)
714
attribute.DefaultValue = ExportDefaultValue(accessor.Mapping, accessor.
Default
);
738
element.DefaultValue = ExportDefaultValue(accessor.Mapping, accessor.
Default
);
System\Xml\Serialization\XmlSerializationReader.cs (2)
4285
if (element.
Default
!= null && element.
Default
!= DBNull.Value && element.Mapping.TypeDesc.IsValueType) {
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
3035
if (element.
Default
!= null && element.
Default
!= DBNull.Value && element.Mapping.TypeDesc.IsValueType) {
System\Xml\Serialization\XmlSerializationWriter.cs (4)
2369
WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", attribute.
Default
, source, attribute.Mapping, false, false, false);
2887
WritePrimitive("WriteElementString", name, ns, element.
Default
, source, element.Mapping, false, true, element.IsNullable);
2893
WriteQualifiedNameElement(name, ns, element.
Default
, source, element.IsNullable, mapping.IsSoap, mapping);
2898
name, ns, element.
Default
, source, mapping, mapping.IsSoap, true, element.IsNullable);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (4)
1347
WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", GetConvertedDefaultValue(source.Type, attribute.
Default
), source, attribute.Mapping, false, false, false);
1911
WritePrimitive("WriteElementString", name, ns, element.
Default
, source, element.Mapping, false, true, element.IsNullable);
1916
WriteQualifiedNameElement(name, ns, GetConvertedDefaultValue(source.Type, element.
Default
), source, element.IsNullable, mapping);
1920
name, ns, GetConvertedDefaultValue(source.Type, element.
Default
), source, mapping, false, true, element.IsNullable);