5 types derived from XmlObjectSerializer
System.Runtime.Serialization (3)
System\Runtime\Serialization\DataContractSerializer.cs (1)
21
public sealed class DataContractSerializer :
XmlObjectSerializer
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
20
public sealed class DataContractJsonSerializer :
XmlObjectSerializer
System\Runtime\Serialization\NetDataContractSerializer.cs (1)
19
public sealed class NetDataContractSerializer :
XmlObjectSerializer
, IFormatter
System.ServiceModel (1)
System\ServiceModel\Dispatcher\XmlSerializerObjectSerializer.cs (1)
15
internal class XmlSerializerObjectSerializer :
XmlObjectSerializer
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\UnwrappedTypesXmlSerializerManager.cs (1)
111
class XmlSerializerXmlObjectSerializer :
XmlObjectSerializer
232 references to XmlObjectSerializer
System.Runtime.Serialization (133)
System\Runtime\Serialization\Attributes.cs (3)
128
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.InvalidXsIdDefinition, Id)));
137
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.InvalidXsRefDefinition, Ref)));
150
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.InvalidSizeDefinition, ArraySZSize)));
System\Runtime\Serialization\ClassDataContract.cs (1)
1309
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.SerializationInfo_ConstructorNotFound, DataContract.GetClrTypeFullName(UnderlyingType))));
System\Runtime\Serialization\CodeGenerator.cs (13)
559
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ParameterCountMismatch, methodInfo.Name, methodInfo.GetParameters().Length, expectedCount)));
764
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.NoGetMethodForProperty, property.DeclaringType, property)));
775
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.CannotLoadMemberType, memberInfo.MemberType, memberInfo.DeclaringType, memberInfo.Name)));
806
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.NoSetMethodForProperty, property.DeclaringType, property)));
813
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.CannotLoadMemberType, memberInfo.MemberType)));
883
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.CanOnlyStoreIntoArgOrLocGot0, DataContract.GetClrTypeFullName(var.GetType()))));
1099
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.UnknownConstantType, DataContract.GetClrTypeFullName(valueType))));
1415
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ArrayTypeIsNotSupported, DataContract.GetClrTypeFullName(arrayElementType))));
1478
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ArrayTypeIsNotSupported, DataContract.GetClrTypeFullName(arrayElementType))));
1654
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.NoConversionPossibleTo, DataContract.GetClrTypeFullName(target))));
1669
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.IsNotAssignableFrom, DataContract.GetClrTypeFullName(target), DataContract.GetClrTypeFullName(source))));
1690
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.IsNotAssignableFrom, DataContract.GetClrTypeFullName(target), DataContract.GetClrTypeFullName(source))));
1714
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ExpectingEnd, expected.ToString())));
System\Runtime\Serialization\DataContractSerializer.cs (6)
362
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ExceededMaxItemsQuota, MaxItemsInObjectGraph)));
377
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.IsAnyCannotBeNull, declaredType)));
399
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.IsAnyCannotBeSerializedAsDerivedType, graphType, contract.UnderlyingType)));
450
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ExceededMaxItemsQuota, MaxItemsInObjectGraph)));
471
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationExceptionWithReaderDetails(SR.GetString(SR.ExpectingElement, expectedNs, expectedName), xmlReader));
476
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationExceptionWithReaderDetails(SR.GetString(SR.ExpectingElementAtDeserialize, XmlNodeType.Element), xmlReader));
System\Runtime\Serialization\EnumDataContract.cs (4)
372
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.InvalidEnumValueOnWrite, value, DataContract.GetClrTypeFullName(UnderlyingType))));
378
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.InvalidEnumValueOnWrite, value, DataContract.GetClrTypeFullName(UnderlyingType))));
418
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.InvalidEnumValueOnRead, stringValue, DataContract.GetClrTypeFullName(UnderlyingType))));
437
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.InvalidEnumValueOnRead, value.Substring(index, count), DataContract.GetClrTypeFullName(UnderlyingType))));
System\Runtime\Serialization\HybridObjectCache.cs (1)
27
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.MultipleIdDefinition, id)));
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (5)
411
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(System.Runtime.Serialization.SR.GetString(System.Runtime.Serialization.SR.ExceededMaxItemsQuota, MaxItemsInObjectGraph)));
418
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationExceptionWithReaderDetails(System.Runtime.Serialization.SR.GetString(System.Runtime.Serialization.SR.ExpectingElement, XmlDictionaryString.Empty, RootName), xmlReader));
423
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationExceptionWithReaderDetails(System.Runtime.Serialization.SR.GetString(System.Runtime.Serialization.SR.ExpectingElementAtDeserialize, XmlNodeType.Element), xmlReader));
452
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(System.Runtime.Serialization.SR.GetString(System.Runtime.Serialization.SR.ExceededMaxItemsQuota, MaxItemsInObjectGraph)));
588
XmlObjectSerializer
.CreateSerializationException(SR.GetString(
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (1)
509
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.SerializationInfo_ConstructorNotFound, DataContract.GetClrTypeFullName(classContract.UnderlyingType))));
System\Runtime\Serialization\Json\JsonObjectDataContract.cs (1)
49
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.JsonUnexpectedAttributeValue, contentMode)));
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (2)
311
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(
XmlObjectSerializer
.TryAddLineInfo(this, SR.GetString(System.Runtime.Serialization.SR.XmlInvalidConversion, value, "UInt64"))));
349
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(
XmlObjectSerializer
.TryAddLineInfo(this, System.Runtime.Serialization.SR.GetString(System.Runtime.Serialization.SR.XmlInvalidConversion, value, "UInt64"))));
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (1)
217
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.JsonDateTimeOutOfRange), new ArgumentOutOfRangeException("value")));
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (1)
76
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.JsonUnexpectedAttributeValue, extensionDataValueType)));
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (5)
165
SerializationInfo serInfo = new SerializationInfo(objType,
XmlObjectSerializer
.FormatterConverter);
169
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ChangingFullTypeNameNotSupported, serInfo.FullTypeName, DataContract.GetClrTypeFullName(objType))));
292
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.XmlObjectAssignedToIncompatibleInterface, graph.GetType(), declaredType)));
297
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.CollectionAssignedToIncompatibleInterface, graph.GetType(), declaredType)));
356
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.DcTypeNotFoundOnSerialize, DataContract.GetClrTypeFullName(dataContract.UnderlyingType), dataContract.StableName.Name, dataContract.StableName.Namespace)));
System\Runtime\Serialization\NetDataContractSerializer.cs (5)
244
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ExceededMaxItemsQuota, MaxItemsInObjectGraph)));
248
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.IsAnyNotSupportedByNetDataContractSerializer, contract.UnderlyingType)));
302
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.TypeCannotBeForwardedFrom, DataContract.GetClrTypeFullName(clrType), clrType.Assembly.FullName, clrAssemblyName)));
422
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ExceededMaxItemsQuota, MaxItemsInObjectGraph)));
427
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationExceptionWithReaderDetails(SR.GetString(SR.ExpectingElementAtDeserialize, XmlNodeType.Element), xmlReader));
System\Runtime\Serialization\ObjectToIdCache.cs (2)
105
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ObjectTableOverflow)));
144
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ObjectTableOverflow)));
System\Runtime\Serialization\PrimitiveDataContract.cs (2)
138
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.CannotDeserializeRefAtTopLevel, attributes.Ref)));
714
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.XmlForObjectCannotHaveContent, localName, ns), xes));
System\Runtime\Serialization\SurrogateDataContract.cs (1)
41
SerializationInfo serInfo = new SerializationInfo(UnderlyingType,
XmlObjectSerializer
.FormatterConverter, !context.UnsafeTypeForwardingEnabled);
System\Runtime\Serialization\XmlObjectSerializer.cs (16)
87
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(GetTypeInfoError(SR.ErrorSerializing, GetSerializeType(graph), ex), ex));
91
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(GetTypeInfoError(SR.ErrorSerializing, GetSerializeType(graph), ex), ex));
140
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(GetTypeInfoError(SR.ErrorWriteStartObject, GetSerializeType(graph), ex), ex));
144
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(GetTypeInfoError(SR.ErrorWriteStartObject, GetSerializeType(graph), ex), ex));
159
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.XmlWriterMustBeInElement, writer.WriteState)));
168
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.XmlWriterMustBeInElement, writer.WriteState)));
174
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(GetTypeInfoError(SR.ErrorSerializing, GetSerializeType(graph), ex), ex));
178
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(GetTypeInfoError(SR.ErrorSerializing, GetSerializeType(graph), ex), ex));
191
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(GetTypeInfoError(SR.ErrorWriteEndObject, null, ex), ex));
195
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(GetTypeInfoError(SR.ErrorWriteEndObject, null, ex), ex));
318
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(GetTypeInfoError(SR.ErrorDeserializing, GetDeserializeType(), ex), ex));
322
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(GetTypeInfoError(SR.ErrorDeserializing, GetDeserializeType(), ex), ex));
335
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(GetTypeInfoError(SR.ErrorIsStartObject, GetDeserializeType(), ex), ex));
339
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(GetTypeInfoError(SR.ErrorIsStartObject, GetDeserializeType(), ex), ex));
402
return
XmlObjectSerializer
.CreateSerializationException(TryAddLineInfo(reader, SR.GetString(SR.EncounteredWithNameNamespace, errorMessage, reader.NodeType, reader.LocalName, reader.NamespaceURI)));
407
return
XmlObjectSerializer
.CreateSerializationException(errorMessage, null);
System\Runtime\Serialization\XmlObjectSerializerContext.cs (4)
21
protected
XmlObjectSerializer
serializer;
42
internal XmlObjectSerializerContext(
XmlObjectSerializer
serializer, int maxItemsInObjectGraph, StreamingContext streamingContext, bool ignoreExtensionDataObject, DataContractResolver dataContractResolver)
52
internal XmlObjectSerializerContext(
XmlObjectSerializer
serializer, int maxItemsInObjectGraph, StreamingContext streamingContext, bool ignoreExtensionDataObject)
129
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ExceededMaxItemsQuota, maxItemsInObjectGraph)));
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (24)
85
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.NullValueReturnedForGetOnlyCollection, DataContract.GetClrTypeFullName(type))));
94
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ArrayExceededSize, arraySize, DataContract.GetClrTypeFullName(type))));
109
internal XmlObjectSerializerReadContext(
XmlObjectSerializer
serializer, int maxItemsInObjectGraph, StreamingContext streamingContext, bool ignoreExtensionDataObject)
153
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.IsReferenceGetOnlyCollectionsNotSupported, attributes.Ref, DataContract.GetClrTypeFullName(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))));
208
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.FactoryTypeNotISerializable, DataContract.GetClrTypeFullName(factoryDataContract.UnderlyingType), DataContract.GetClrTypeFullName(dataContract.UnderlyingType))));
292
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(
XmlObjectSerializer
.TryAddLineInfo(xmlReader, SR.GetString(SR.UnexpectedElementExpectingElements, xmlReader.NodeType, xmlReader.LocalName, xmlReader.NamespaceURI, stringBuilder.ToString()))));
400
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.FactoryObjectContainsSelfReference, DataContract.GetClrTypeFullName(oldObj.GetType()), DataContract.GetClrTypeFullName(newObj.GetType()), id)));
412
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.DeserializedObjectWithIdNotFound, id)));
425
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.DeserializedObjectWithIdNotFound, id)));
439
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.GetRealObjectReturnedNull, DataContract.GetClrTypeFullName(obj.GetType()))));
464
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.UnexpectedEndOfFile)));
484
XmlObjectSerializer
.CreateSerializationException(
514
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ArrayExceededSizeAttribute, arraySize, itemName.Value, itemNamespace.Value)));
565
SerializationInfo serInfo = new SerializationInfo(type,
XmlObjectSerializer
.FormatterConverter);
846
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ArraySizeAttributeIncorrect, arraySize, 0)));
849
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ArraySizeAttributeIncorrect, arraySize, dataNode.Items.Count)));
928
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.UnexpectedEndOfFile)));
985
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.UnexpectedEndOfFile)));
1075
return
XmlObjectSerializer
.CreateSerializationExceptionWithReaderDetails(SR.GetString(SR.ExpectingState, expectedState), xmlReader);
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (10)
57
internal XmlObjectSerializerReadContextComplex(
XmlObjectSerializer
serializer, int maxItemsInObjectGraph, StreamingContext streamingContext, bool ignoreExtensionDataObject)
171
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.AssemblyNotFound, assemblyName)));
173
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ClrTypeNotFound, assembly.FullName, typeName)));
182
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(
XmlObjectSerializer
.TryAddLineInfo(xmlReader, SR.GetString(SR.AttributeNotFound, Globals.SerializationNamespace, Globals.ClrTypeLocalName, xmlReader.NodeType, xmlReader.NamespaceURI, xmlReader.LocalName))));
184
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(
XmlObjectSerializer
.TryAddLineInfo(xmlReader, SR.GetString(SR.AttributeNotFound, Globals.SerializationNamespace, Globals.ClrAssemblyLocalName, xmlReader.NodeType, xmlReader.NamespaceURI, xmlReader.LocalName))));
186
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(
XmlObjectSerializer
.TryAddLineInfo(xmlReader, SR.GetString(SR.AttributeNotFound, Globals.SerializationNamespace, Globals.ClrTypeLocalName, xmlReader.NodeType, xmlReader.NamespaceURI, xmlReader.LocalName))));
439
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.CannotDeserializeForwardedType, DataContract.GetClrTypeFullName(resolvedType))));
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (11)
64
internal XmlObjectSerializerWriteContext(
XmlObjectSerializer
serializer, int maxItemsInObjectGraph, StreamingContext streamingContext, bool ignoreExtensionDataObject)
263
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.DcTypeNotFoundOnSerialize, DataContract.GetClrTypeFullName(dataContract.UnderlyingType), dataContract.StableName.Name, dataContract.StableName.Namespace)));
380
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.CannotSerializeObjectWithCycles, DataContract.GetClrTypeFullName(obj.GetType()))));
485
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.UnknownXmlType, DataContract.GetClrTypeFullName(obj.GetType()))));
505
SerializationInfo serInfo = new SerializationInfo(objType,
XmlObjectSerializer
.FormatterConverter, !this.UnsafeTypeForwardingEnabled);
511
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ISerializableAssemblyNameSetToZero, DataContract.GetClrTypeFullName(obj.GetType()))));
728
XmlObjectSerializer
.WriteNull(xmlWriter);
744
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ResolveTypeReturnedFalse, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType))));
754
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ResolveTypeReturnedNull, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType))));
759
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ResolveTypeReturnedNull, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType))));
766
if (!
XmlObjectSerializer
.IsContractDeclared(contract, declaredContract))
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (1)
53
internal XmlObjectSerializerWriteContextComplex(
XmlObjectSerializer
serializer, int maxItemsInObjectGraph, StreamingContext streamingContext, bool ignoreExtensionDataObject)
System\Runtime\Serialization\XmlReaderDelegator.cs (3)
28
XmlObjectSerializer
.CheckNull(reader, "reader");
346
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(
XmlObjectSerializer
.TryAddLineInfo(this, SR.GetString(SR.XmlInvalidConversion, value, type))));
844
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.ArrayExceededSizeAttribute, expectedLength, itemName.Value, itemNamespace.Value)));
System\Runtime\Serialization\XmlSerializableReader.cs (1)
66
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.IXmlSerializableIllegalOperation)));
System\Runtime\Serialization\XmlSerializableServices.cs (2)
30
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.UnexpectedEndOfFile)));
44
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.UnexpectedEndOfFile)));
System\Runtime\Serialization\XmlSerializableWriter.cs (4)
25
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.IXmlSerializableMissingEndElements, (obj == null ? string.Empty : DataContract.GetClrTypeFullName(obj.GetType())))));
54
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.IXmlSerializableWritePastSubTree, (obj == null ? string.Empty : DataContract.GetClrTypeFullName(obj.GetType())))));
62
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.IXmlSerializableWritePastSubTree, (obj == null ? string.Empty : DataContract.GetClrTypeFullName(obj.GetType())))));
69
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.IXmlSerializableIllegalOperation)));
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
28
XmlObjectSerializer
.CheckNull(writer, "writer");
System\Runtime\Serialization\XPathQueryGenerator.cs (2)
63
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.QueryGeneratorPathToMemberNotFound)));
77
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlObjectSerializer
.CreateSerializationException(SR.GetString(SR.QueryGeneratorPathToMemberNotFound)));
System.ServiceModel (74)
System\ServiceModel\Channels\AddressHeader.cs (6)
40
public static AddressHeader CreateAddressHeader(object value,
XmlObjectSerializer
serializer)
57
public static AddressHeader CreateAddressHeader(string name, string ns, object value,
XmlObjectSerializer
serializer)
110
public T GetValue<T>(
XmlObjectSerializer
serializer)
243
XmlObjectSerializer
serializer;
248
public XmlObjectSerializerAddressHeader(object objectToSerialize,
XmlObjectSerializer
serializer)
259
public XmlObjectSerializerAddressHeader(string name, string ns, object objectToSerialize,
XmlObjectSerializer
serializer)
System\ServiceModel\Channels\Message.cs (5)
160
static public Message CreateMessage(MessageVersion version, string action, object body,
XmlObjectSerializer
serializer)
285
public T GetBody<T>(
XmlObjectSerializer
serializer)
292
T GetBodyCore<T>(XmlDictionaryReader reader,
XmlObjectSerializer
serializer)
899
XmlObjectSerializer
serializer;
901
public XmlObjectSerializerBodyWriter(object body,
XmlObjectSerializer
serializer)
System\ServiceModel\Channels\MessageFault.cs (6)
38
public static MessageFault CreateFault(FaultCode code, FaultReason reason, object detail,
XmlObjectSerializer
serializer)
43
public static MessageFault CreateFault(FaultCode code, FaultReason reason, object detail,
XmlObjectSerializer
serializer, string actor)
50
public static MessageFault CreateFault(FaultCode code, FaultReason reason, object detail,
XmlObjectSerializer
serializer, string actor, string node)
171
public T GetDetail<T>(
XmlObjectSerializer
serializer)
410
XmlObjectSerializer
serializer;
412
public XmlObjectSerializerFault(FaultCode code, FaultReason reason, object detail,
XmlObjectSerializer
serializer, string actor, string node)
System\ServiceModel\Channels\MessageHeader.cs (7)
164
public static MessageHeader CreateHeader(string name, string ns, object value,
XmlObjectSerializer
serializer)
169
public static MessageHeader CreateHeader(string name, string ns, object value,
XmlObjectSerializer
serializer, bool mustUnderstand)
174
public static MessageHeader CreateHeader(string name, string ns, object value,
XmlObjectSerializer
serializer, bool mustUnderstand, string actor)
179
public static MessageHeader CreateHeader(string name, string ns, object value,
XmlObjectSerializer
serializer, bool mustUnderstand, string actor, bool relay)
302
XmlObjectSerializer
serializer;
314
XmlObjectSerializerHeader(
XmlObjectSerializer
serializer, bool mustUnderstand, string actor, bool relay)
348
public XmlObjectSerializerHeader(string name, string ns, object objectToSerialize,
XmlObjectSerializer
serializer, bool mustUnderstand, string actor, bool relay)
System\ServiceModel\Channels\MessageHeaders.cs (2)
848
public T GetHeader<T>(string name, string ns,
XmlObjectSerializer
serializer)
871
public T GetHeader<T>(int index,
XmlObjectSerializer
serializer)
System\ServiceModel\Description\DataContractSerializerOperationBehavior.cs (2)
101
public virtual
XmlObjectSerializer
CreateSerializer(Type type, string name, string ns, IList<Type> knownTypes)
106
public virtual
XmlObjectSerializer
CreateSerializer(Type type, XmlDictionaryString name, XmlDictionaryString ns, IList<Type> knownTypes)
System\ServiceModel\Description\NetDataContractSerializerOperationBehavior.cs (2)
18
public override
XmlObjectSerializer
CreateSerializer(Type type, string name, string ns, IList<Type> knownTypes)
23
public override
XmlObjectSerializer
CreateSerializer(Type type, XmlDictionaryString name, XmlDictionaryString ns, IList<Type> knownTypes)
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (4)
353
XmlObjectSerializer
serializerLocal = serializerFactory.CreateSerializer(dataContractType, headerDescription.Name, headerDescription.Namespace, this.knownTypes);
533
XmlObjectSerializer
serializer;
571
public
XmlObjectSerializer
Serializer
588
public object ReadObject(XmlDictionaryReader reader,
XmlObjectSerializer
serializer)
System\ServiceModel\Dispatcher\FaultFormatter.cs (5)
43
XmlObjectSerializer
serializer = null;
72
protected virtual
XmlObjectSerializer
GetSerializer(Type detailType, string faultExceptionAction, out string action)
120
XmlObjectSerializer
serializer = faultInfo.Serializer;
185
static MessageFault CreateMessageFault(
XmlObjectSerializer
serializer, FaultException faultException, Type detailType)
201
public OperationFault(
XmlObjectSerializer
serializer, FaultException<T> faultException) :
System\ServiceModel\Dispatcher\XmlSerializerFaultFormatter.cs (2)
45
protected override
XmlObjectSerializer
GetSerializer(Type detailType, string faultExceptionAction, out string action)
95
XmlObjectSerializer
serializer = faultInfo.Serializer;
System\ServiceModel\Security\RequestSecurityToken.cs (1)
497
public T GetAppliesTo<T>(
XmlObjectSerializer
serializer)
System\ServiceModel\Security\RequestSecurityTokenResponse.cs (4)
57
XmlObjectSerializer
appliesToSerializer;
413
internal
XmlObjectSerializer
AppliesToSerializer
505
public void SetAppliesTo<T>(T appliesTo,
XmlObjectSerializer
serializer)
530
public T GetAppliesTo<T>(
XmlObjectSerializer
serializer)
System\ServiceModel\Security\SctClaimSerializer.cs (10)
57
public static void SerializeClaim(Claim claim, SctClaimDictionary dictionary, XmlDictionaryWriter writer,
XmlObjectSerializer
serializer)
176
public static void SerializeClaimSet(ClaimSet claimSet, SctClaimDictionary dictionary, XmlDictionaryWriter writer,
XmlObjectSerializer
serializer,
XmlObjectSerializer
claimSerializer)
226
public static Claim DeserializeClaim(XmlDictionaryReader reader, SctClaimDictionary dictionary,
XmlObjectSerializer
serializer)
343
public static ClaimSet DeserializeClaimSet(XmlDictionaryReader reader, SctClaimDictionary dictionary,
XmlObjectSerializer
serializer,
XmlObjectSerializer
claimSerializer)
401
public static void SerializeIdentities(AuthorizationContext authContext, SctClaimDictionary dictionary, XmlDictionaryWriter writer,
XmlObjectSerializer
serializer)
420
static void SerializePrimaryIdentity(IIdentity identity, SctClaimDictionary dictionary, XmlDictionaryWriter writer,
XmlObjectSerializer
serializer)
475
public static IList<IIdentity> DeserializeIdentities(XmlDictionaryReader reader, SctClaimDictionary dictionary,
XmlObjectSerializer
serializer)
495
static IIdentity DeserializePrimaryIdentity(XmlDictionaryReader reader, SctClaimDictionary dictionary,
XmlObjectSerializer
serializer)
System\ServiceModel\Security\TrustDriver.cs (2)
120
public abstract T GetAppliesTo<T>(RequestSecurityToken rst,
XmlObjectSerializer
serializer);
122
public abstract T GetAppliesTo<T>(RequestSecurityTokenResponse rstr,
XmlObjectSerializer
serializer);
System\ServiceModel\Security\WSTrust.cs (4)
440
T GetAppliesTo<T>(XmlElement rootXml,
XmlObjectSerializer
serializer)
460
public override T GetAppliesTo<T>(RequestSecurityToken rst,
XmlObjectSerializer
serializer)
468
public override T GetAppliesTo<T>(RequestSecurityTokenResponse rstr,
XmlObjectSerializer
serializer)
1004
void WriteAppliesTo(object appliesTo, Type appliesToType,
XmlObjectSerializer
serializer, XmlWriter xmlWriter)
System\ServiceModel\Syndication\SyndicationContent.cs (1)
72
public static XmlSyndicationContent CreateXmlContent(object dataContractObject,
XmlObjectSerializer
dataContractSerializer)
System\ServiceModel\Syndication\SyndicationElementExtension.cs (6)
47
: this(dataContractExtension, (
XmlObjectSerializer
) null)
51
public SyndicationElementExtension(object dataContractExtension,
XmlObjectSerializer
dataContractSerializer)
61
public SyndicationElementExtension(string outerName, string outerNamespace, object dataContractExtension,
XmlObjectSerializer
dataContractSerializer)
132
public TExtension GetObject<TExtension>(
XmlObjectSerializer
serializer)
227
readonly
XmlObjectSerializer
dataContractSerializer;
233
public ExtensionDataWriter(object extensionData,
XmlObjectSerializer
dataContractSerializer, string outerName, string outerNamespace)
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (3)
70
public void Add(string outerName, string outerNamespace, object dataContractExtension,
XmlObjectSerializer
dataContractSerializer)
118
public Collection<TExtension> ReadElementExtensions<TExtension>(string extensionName, string extensionNamespace,
XmlObjectSerializer
serializer)
243
Collection<TExtension> ReadExtensions<TExtension>(string extensionName, string extensionNamespace,
XmlObjectSerializer
dcSerializer, XmlSerializer xmlSerializer)
System\ServiceModel\Syndication\XmlSyndicationContent.cs (2)
59
public XmlSyndicationContent(string type, object dataContractExtension,
XmlObjectSerializer
dataContractSerializer)
122
public TContent ReadContent<TContent>(
XmlObjectSerializer
dataContractSerializer)
System.ServiceModel.Web (25)
System\ServiceModel\Description\DataContractJsonSerializerOperationBehavior.cs (2)
28
public override
XmlObjectSerializer
CreateSerializer(Type type, string name, string ns, IList<Type> knownTypes)
33
public override
XmlObjectSerializer
CreateSerializer(Type type, System.Xml.XmlDictionaryString name, System.Xml.XmlDictionaryString ns, IList<Type> knownTypes)
System\ServiceModel\Dispatcher\DataContractJsonSerializerOperationFormatter.cs (3)
554
XmlObjectSerializer
.CreateSerializationException(SR2.GetString(SR2.JsonFormatterExpectedAttributeObject, typeAttribute)));
572
XmlObjectSerializer
.CreateSerializationException(SR2.GetString(SR2.JsonFormatterExpectedAttributeNull, typeAttribute)));
740
XmlObjectSerializer
.CreateSerializationException(SR2.GetString(SR2.JsonFormatterExpectedAttributeObject, typeAttribute)));
System\ServiceModel\Dispatcher\SingleBodyParameterDataContractMessageFormatter.cs (7)
23
XmlObjectSerializer
cachedOutputSerializer;
26
XmlObjectSerializer
[] inputSerializers;
107
protected override
XmlObjectSerializer
[] GetInputSerializers()
112
protected override
XmlObjectSerializer
GetOutputSerializer(Type type)
207
List<
XmlObjectSerializer
> tmp = new List<
XmlObjectSerializer
>();
216
XmlObjectSerializer
CreateSerializer(Type type)
System\ServiceModel\Dispatcher\SingleBodyParameterMessageFormatter.cs (6)
216
protected abstract
XmlObjectSerializer
[] GetInputSerializers();
218
protected abstract
XmlObjectSerializer
GetOutputSerializer(Type type);
270
XmlObjectSerializer
serializer;
292
XmlObjectSerializer
[] inputSerializers = GetInputSerializers();
349
XmlObjectSerializer
serializer;
351
public SingleParameterBodyWriter(object body,
XmlObjectSerializer
serializer)
System\ServiceModel\Dispatcher\SingleBodyParameterXmlSerializerMessageFormatter.cs (5)
19
XmlObjectSerializer
cachedOutputSerializer;
24
XmlObjectSerializer
[] serializers;
70
protected override
XmlObjectSerializer
[] GetInputSerializers()
79
protected override
XmlObjectSerializer
GetOutputSerializer(Type type)
116
this.serializers = new
XmlObjectSerializer
[this.typeSerializerPairs.Length];
System\ServiceModel\Dispatcher\UnwrappedTypesXmlSerializerManager.cs (1)
107
public
XmlObjectSerializer
Serializer;
System\ServiceModel\Web\WebOperationContext.cs (1)
118
public Message CreateXmlResponse<T>(T instance, System.Runtime.Serialization.
XmlObjectSerializer
serializer)