2 writes to preserveObjectReferences
System.Runtime.Serialization (2)
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (2)
38
this.
preserveObjectReferences
= serializer.PreserveObjectReferences;
46
this.
preserveObjectReferences
= true;
4 references to preserveObjectReferences
System.Runtime.Serialization (4)
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
229
if (
preserveObjectReferences
|| !contract.IsReference || isGetOnlyCollection)
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (3)
251
if (
preserveObjectReferences
&& !this.IsGetOnlyCollection)
269
if (
preserveObjectReferences
&& !this.IsGetOnlyCollection)
375
if (
preserveObjectReferences
&& size > -1)