3 writes to attributes
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (1)
147attributes ??= new Attributes();
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (2)
84this.attributes = new Attributes(); 316attributes ??= 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)
117if (attributes.Ref != Globals.NewObjectId) 125retObj = GetExistingObject(attributes.Ref, declaredType, name, ns); 130else if (attributes.XsiNil) 153Debug.Assert(attributes != null); 155if (attributes.XsiTypeName != null) 157DataContract? tempDataContract = ResolveDataContractFromKnownTypes(attributes.XsiTypeName, attributes.XsiTypeNamespace, dataContract, declaredType); 162throw XmlObjectSerializer.CreateSerializationException(XmlObjectSerializer.TryAddLineInfo(reader, SR.Format(SR.DcTypeNotFoundOnDeserialize, attributes.XsiTypeNamespace, attributes.XsiTypeName, reader.NamespaceURI, reader.LocalName))); 164throw XmlObjectSerializer.CreateSerializationException(XmlObjectSerializer.TryAddLineInfo(reader, SR.Format(SR.DcTypeNotResolvedOnDeserialize, attributes.XsiTypeNamespace, attributes.XsiTypeName, reader.NamespaceURI, reader.LocalName))); 170if (dataContract.IsISerializable && attributes.FactoryTypeName != null) 172DataContract? factoryDataContract = ResolveDataContractFromKnownTypes(attributes.FactoryTypeName, attributes.FactoryTypeNamespace, dataContract, declaredType); 296Debug.Assert(attributes != null); 298if (attributes.Ref != Globals.NewObjectId) 302return attributes.Ref; 304else if (attributes.XsiNil) 313[MemberNotNull(nameof(attributes))] 317attributes.Read(xmlReader); 322attributes?.Reset(); 327Debug.Assert(attributes != null); 329return attributes.Id; 339Debug.Assert(attributes != null); 341AddNewObjectWithId(attributes.Id, obj); 567if (attributes.Ref != Globals.NewObjectId) 570value = GetExistingObject(attributes.Ref, null, name, string.Empty); 572else if (attributes.XsiNil) 592Debug.Assert(attributes != null); 594return (attributes.XsiTypeName == null) ? null : ResolveDataContractFromKnownTypes(attributes.XsiTypeName, attributes.XsiTypeNamespace, null /*memberTypeContract*/, null); 617if (attributes.Ref != Globals.NewObjectId) 620object o = GetExistingObjectOrExtensionData(attributes.Ref); 622dataNode.Id = attributes.Ref; 624else if (attributes.XsiNil) 633if (attributes.XsiTypeName != null) 635dataContractName = attributes.XsiTypeName; 636dataContractNamespace = attributes.XsiTypeNamespace; 644else if (attributes.FactoryTypeName != null) 671if (attributes.Id == Globals.NewObjectId) 713Debug.Assert(attributes != null); 717if (attributes.UnrecognizedAttributesFound) 767Debug.Assert(attributes != null); 771dataNode.ClrAssemblyName = attributes.ClrAssembly; 772dataNode.ClrTypeName = attributes.ClrType; 774dataNode.Id = attributes.Id; 809Debug.Assert(attributes != null); 814int arraySize = attributes.ArraySZSize; 866Debug.Assert(attributes != null); 871dataNode.FactoryTypeName = attributes.FactoryTypeName; 872dataNode.FactoryTypeNamespace = attributes.FactoryTypeNamespace; 1099Debug.Assert(attributes != null); 1101return (attributes.ArraySZSize != -1);
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (2)
123Debug.Assert(attributes != null); 125return _preserveObjectReferences ? attributes.ArraySZSize : -1;