3 writes to attributes
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (1)
147attributes ??= new Attributes();
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (2)
82this.attributes = new Attributes(); 314attributes ??= new Attributes();
60 references to attributes
System.Private.DataContractSerialization (60)
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (4)
148attributes.Reset(); 152attributes.XsiNil = true; 157attributes.XsiTypeName = qualifiedTypeName.Name; 187attributes.XsiTypeNamespace = serverTypeNamespace;
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (54)
115if (attributes.Ref != Globals.NewObjectId) 123retObj = GetExistingObject(attributes.Ref, declaredType, name, ns); 128else if (attributes.XsiNil) 151Debug.Assert(attributes != null); 153if (attributes.XsiTypeName != null) 155DataContract? tempDataContract = ResolveDataContractFromKnownTypes(attributes.XsiTypeName, attributes.XsiTypeNamespace, dataContract, declaredType); 160throw XmlObjectSerializer.CreateSerializationException(XmlObjectSerializer.TryAddLineInfo(reader, SR.Format(SR.DcTypeNotFoundOnDeserialize, attributes.XsiTypeNamespace, attributes.XsiTypeName, reader.NamespaceURI, reader.LocalName))); 162throw XmlObjectSerializer.CreateSerializationException(XmlObjectSerializer.TryAddLineInfo(reader, SR.Format(SR.DcTypeNotResolvedOnDeserialize, attributes.XsiTypeNamespace, attributes.XsiTypeName, reader.NamespaceURI, reader.LocalName))); 168if (dataContract.IsISerializable && attributes.FactoryTypeName != null) 170DataContract? factoryDataContract = ResolveDataContractFromKnownTypes(attributes.FactoryTypeName, attributes.FactoryTypeNamespace, dataContract, declaredType); 294Debug.Assert(attributes != null); 296if (attributes.Ref != Globals.NewObjectId) 300return attributes.Ref; 302else if (attributes.XsiNil) 311[MemberNotNull(nameof(attributes))] 315attributes.Read(xmlReader); 320attributes?.Reset(); 325Debug.Assert(attributes != null); 327return attributes.Id; 337Debug.Assert(attributes != null); 339AddNewObjectWithId(attributes.Id, obj); 565if (attributes.Ref != Globals.NewObjectId) 568value = GetExistingObject(attributes.Ref, null, name, string.Empty); 570else if (attributes.XsiNil) 590Debug.Assert(attributes != null); 592return (attributes.XsiTypeName == null) ? null : ResolveDataContractFromKnownTypes(attributes.XsiTypeName, attributes.XsiTypeNamespace, null /*memberTypeContract*/, null); 615if (attributes.Ref != Globals.NewObjectId) 618object o = GetExistingObjectOrExtensionData(attributes.Ref); 620dataNode.Id = attributes.Ref; 622else if (attributes.XsiNil) 631if (attributes.XsiTypeName != null) 633dataContractName = attributes.XsiTypeName; 634dataContractNamespace = attributes.XsiTypeNamespace; 642else if (attributes.FactoryTypeName != null) 669if (attributes.Id == Globals.NewObjectId) 711Debug.Assert(attributes != null); 715if (attributes.UnrecognizedAttributesFound) 765Debug.Assert(attributes != null); 769dataNode.ClrAssemblyName = attributes.ClrAssembly; 770dataNode.ClrTypeName = attributes.ClrType; 772dataNode.Id = attributes.Id; 807Debug.Assert(attributes != null); 812int arraySize = attributes.ArraySZSize; 864Debug.Assert(attributes != null); 869dataNode.FactoryTypeName = attributes.FactoryTypeName; 870dataNode.FactoryTypeNamespace = attributes.FactoryTypeNamespace; 1097Debug.Assert(attributes != null); 1099return (attributes.ArraySZSize != -1);
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (2)
123Debug.Assert(attributes != null); 125return _preserveObjectReferences ? attributes.ArraySZSize : -1;