2 writes to Ref
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\Attributes.cs (2)
89
Ref
= Globals.NewObjectId;
114
Ref
= reader.ReadContentAsString();
13 references to Ref
System.Private.DataContractSerialization (13)
System\Runtime\Serialization\Attributes.cs (2)
115
if (string.IsNullOrEmpty(
Ref
))
117
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.InvalidXsRefDefinition,
Ref
));
System\Runtime\Serialization\PrimitiveDataContract.cs (2)
114
if (attributes.
Ref
!= Globals.NewObjectId)
115
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.CannotDeserializeRefAtTopLevel, attributes.
Ref
));
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (9)
117
if (attributes.
Ref
!= Globals.NewObjectId)
125
retObj = GetExistingObject(attributes.
Ref
, declaredType, name, ns);
298
if (attributes.
Ref
!= Globals.NewObjectId)
302
return attributes.
Ref
;
567
if (attributes.
Ref
!= Globals.NewObjectId)
570
value = GetExistingObject(attributes.
Ref
, null, name, string.Empty);
617
if (attributes.
Ref
!= Globals.NewObjectId)
620
object o = GetExistingObjectOrExtensionData(attributes.
Ref
);
622
dataNode.Id = attributes.
Ref
;