1 write to _attribute
System.Private.DataContractSerialization (1)
System\Xml\XmlCanonicalWriter.cs (1)
466
AddAttribute(ref
_attribute
);
24 references to _attribute
System.Private.DataContractSerialization (24)
System\Xml\XmlCanonicalWriter.cs (24)
421
_attribute
.offset = _elementWriter.Position;
422
_attribute
.length = 0;
423
_attribute
.prefixOffset =
_attribute
.offset + 1; // WriteStartAttribute emits a space
424
_attribute
.prefixLength = Encoding.UTF8.GetByteCount(prefix);
425
_attribute
.localNameOffset =
_attribute
.prefixOffset +
_attribute
.prefixLength + (
_attribute
.prefixLength != 0 ? 1 : 0);
426
_attribute
.localNameLength = Encoding.UTF8.GetByteCount(localName);
427
_attribute
.nsOffset = 0;
428
_attribute
.nsLength = 0;
450
_attribute
.offset = _elementWriter.Position;
451
_attribute
.length = 0;
452
_attribute
.prefixOffset =
_attribute
.offset + 1; // WriteStartAttribute emits a space
453
_attribute
.prefixLength = prefixLength;
454
_attribute
.localNameOffset =
_attribute
.prefixOffset + prefixLength + (prefixLength != 0 ? 1 : 0);
455
_attribute
.localNameLength = localNameLength;
456
_attribute
.nsOffset = 0;
457
_attribute
.nsLength = 0;
465
_attribute
.length = _elementWriter.Position -
_attribute
.offset;