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