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