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