4 writes to attributes
System.Runtime.Serialization (4)
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (1)
142attributes = new Attributes();
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (3)
117this.attributes = new Attributes(); 123this.attributes = new Attributes(); 349attributes = new Attributes();
60 references to attributes
System.Runtime.Serialization (60)
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (5)
141if (attributes == null) 143attributes.Reset(); 147attributes.XsiNil = true; 152attributes.XsiTypeName = qualifiedTypeName.Name; 182attributes.XsiTypeNamespace = serverTypeNamespace;
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (48)
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); 162else if (attributes.XsiNil) 183if (attributes.XsiTypeName != null) 185dataContract = ResolveDataContractFromKnownTypes(attributes.XsiTypeName, attributes.XsiTypeNamespace, dataContract, declaredType); 190throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(XmlObjectSerializer.TryAddLineInfo(reader, SR.GetString(SR.DcTypeNotFoundOnDeserialize, attributes.XsiTypeNamespace, attributes.XsiTypeName, reader.NamespaceURI, reader.LocalName)))); 192throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(XmlObjectSerializer.TryAddLineInfo(reader, SR.GetString(SR.DcTypeNotResolvedOnDeserialize, attributes.XsiTypeNamespace, attributes.XsiTypeName, reader.NamespaceURI, reader.LocalName)))); 197if (dataContract.IsISerializable && attributes.FactoryTypeName != null) 199DataContract factoryDataContract = ResolveDataContractFromKnownTypes(attributes.FactoryTypeName, attributes.FactoryTypeNamespace, dataContract, declaredType); 215values["FactoryType"] = attributes.FactoryTypeNamespace + ":" + attributes.FactoryTypeName; 327if (attributes.Ref != Globals.NewObjectId) 331return attributes.Ref; 333else if (attributes.XsiNil) 348if (attributes == null) 350attributes.Read(xmlReader); 355if (attributes != null) 356attributes.Reset(); 361return attributes.Id; 375AddNewObjectWithId(attributes.Id, obj); 582if (attributes.Ref != Globals.NewObjectId) 585value = GetExistingObject(attributes.Ref, null, name, String.Empty); 587else if (attributes.XsiNil) 605return (attributes.XsiTypeName == null) ? null : ResolveDataContractFromKnownTypes(attributes.XsiTypeName, attributes.XsiTypeNamespace, null /*memberTypeContract*/, null); 629if (attributes.Ref != Globals.NewObjectId) 632object o = GetExistingObjectOrExtensionData(attributes.Ref); 634dataNode.Id = attributes.Ref; 636else if (attributes.XsiNil) 645if (attributes.XsiTypeName != null) 647dataContractName = attributes.XsiTypeName; 648dataContractNamespace = attributes.XsiTypeNamespace; 656else if (attributes.FactoryTypeName != null) 683if (attributes.Id == Globals.NewObjectId) 725if (attributes.UnrecognizedAttributesFound) 779dataNode.ClrAssemblyName = attributes.ClrAssembly; 780dataNode.ClrTypeName = attributes.ClrType; 782dataNode.Id = attributes.Id; 817int arraySize = attributes.ArraySZSize; 871dataNode.FactoryTypeName = attributes.FactoryTypeName; 872dataNode.FactoryTypeNamespace = attributes.FactoryTypeNamespace; 1090return (attributes.ArraySZSize != -1);
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (7)
161string assemblyName = attributes.ClrAssembly; 162string typeName = attributes.ClrType; 312if (attributes.ClrAssembly != null && attributes.ClrType != null) 316return ResolveDataContractInSharedTypeMode(attributes.ClrAssembly, attributes.ClrType, out assembly, out type); 384return preserveObjectReferences ? attributes.ArraySZSize : -1;