2 writes to Ref
System.Runtime.Serialization (2)
System\Runtime\Serialization\Attributes.cs (2)
109
Ref
= Globals.NewObjectId;
134
Ref
= reader.ReadContentAsString();
14 references to Ref
System.Runtime.Serialization (14)
System\Runtime\Serialization\Attributes.cs (2)
135
if (string.IsNullOrEmpty(
Ref
))
137
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.InvalidXsRefDefinition,
Ref
)));
System\Runtime\Serialization\PrimitiveDataContract.cs (2)
137
if (attributes.
Ref
!= Globals.NewObjectId)
138
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.CannotDeserializeRefAtTopLevel, attributes.
Ref
)));
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (10)
149
if (attributes.
Ref
!= Globals.NewObjectId)
153
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.IsReferenceGetOnlyCollectionsNotSupported, attributes.
Ref
, DataContract.GetClrTypeFullName(declaredType))));
157
retObj = GetExistingObject(attributes.
Ref
, declaredType, name, ns);
327
if (attributes.
Ref
!= Globals.NewObjectId)
331
return attributes.
Ref
;
582
if (attributes.
Ref
!= Globals.NewObjectId)
585
value = GetExistingObject(attributes.
Ref
, null, name, String.Empty);
629
if (attributes.
Ref
!= Globals.NewObjectId)
632
object o = GetExistingObjectOrExtensionData(attributes.
Ref
);
634
dataNode.Id = attributes.
Ref
;