605 references to SRSerialization
dotnet-svcutil-lib (605)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Attributes.cs (3)
138
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.InvalidXsIdDefinition, Id)));
147
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.InvalidXsRefDefinition, Ref)));
160
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.InvalidSizeDefinition, ArraySZSize)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (34)
372
string.Format((declaringType.GetTypeInfo().IsEnum ?
SRSerialization
.DupEnumMemberValue :
SRSerialization
.DupMemberName),
532
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.UnexpectedContractType, DataContract.GetClrTypeFullName(this.GetType()), DataContract.GetClrTypeFullName(UnderlyingType))));
541
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.UnexpectedContractType, DataContract.GetClrTypeFullName(this.GetType()), DataContract.GetClrTypeFullName(UnderlyingType))));
563
SRSerialization
.PartialTrustDataContractTypeNotPublic,
582
SRSerialization
.PartialTrustNonAttributedSerializableTypeNoPublicConstructor,
595
SRSerialization
.PartialTrustDataContractOnDeserializingNotPublic,
609
SRSerialization
.PartialTrustDataContractOnDeserializedNotPublic,
629
SRSerialization
.PartialTrustDataContractFieldSetNotPublic,
638
SRSerialization
.PartialTrustDataContractPropertySetNotPublic,
667
SRSerialization
.PartialTrustDataContractTypeNotPublic,
683
SRSerialization
.PartialTrustDataContractOnSerializingNotPublic,
697
SRSerialization
.PartialTrustDataContractOnSerializedNotPublic,
717
SRSerialization
.PartialTrustDataContractFieldGetNotPublic,
726
SRSerialization
.PartialTrustDataContractPropertyGetNotPublic,
810
(new InvalidDataContractException(string.Format(
SRSerialization
.AttributedTypesCannotInheritFromNonAttributedSerializableTypes,
888
string.Format(
SRSerialization
.InconsistentIsReference,
914
string.Format(
SRSerialization
.ValueTypeCannotHaveIsReference,
954
ThrowInvalidDataContractException(string.Format(
SRSerialization
.TooManyDataMembers, DataContract.GetClrTypeFullName(member.DeclaringType), member.Name));
969
ThrowInvalidDataContractException(string.Format(
SRSerialization
.NoGetMethodForProperty, property.DeclaringType, property.Name));
974
ThrowInvalidDataContractException(string.Format(
SRSerialization
.NoSetMethodForProperty, property.DeclaringType, property.Name));
978
ThrowInvalidDataContractException(string.Format(
SRSerialization
.IndexedPropertyCannotBeSerialized, property.DeclaringType, property.Name));
981
ThrowInvalidDataContractException(string.Format(
SRSerialization
.InvalidMember, DataContract.GetClrTypeFullName(type), member.Name));
987
ThrowInvalidDataContractException(string.Format(
SRSerialization
.InvalidDataMemberName, member.Name, DataContract.GetClrTypeFullName(type)));
999
string.Format(
SRSerialization
.IsRequiredDataMemberOnIsReferenceDataContractType,
1019
ThrowInvalidDataContractException(string.Format(
SRSerialization
.TooManyIgnoreDataMemberAttributes, DataContract.GetClrTypeFullName(member.DeclaringType), member.Name));
1065
string.Format(
SRSerialization
.NonOptionalFieldMemberOnIsReferenceSerializableType,
1230
DataContract.ThrowInvalidDataContractException(string.Format(
SRSerialization
.DuplicateCallback, method, currentCallback, DataContract.GetClrTypeFullName(method.DeclaringType), attributeType), method.DeclaringType);
1232
DataContract.ThrowInvalidDataContractException(string.Format(
SRSerialization
.DuplicateAttribute, prevAttributeType, attributeType, DataContract.GetClrTypeFullName(method.DeclaringType), method), method.DeclaringType);
1234
DataContract.ThrowInvalidDataContractException(string.Format(
SRSerialization
.CallbacksCannotBeVirtualMethods, method, DataContract.GetClrTypeFullName(method.DeclaringType), attributeType), method.DeclaringType);
1238
DataContract.ThrowInvalidDataContractException(string.Format(
SRSerialization
.CallbackMustReturnVoid, DataContract.GetClrTypeFullName(method.DeclaringType), method), method.DeclaringType);
1240
DataContract.ThrowInvalidDataContractException(string.Format(
SRSerialization
.CallbackParameterInvalid, DataContract.GetClrTypeFullName(method.DeclaringType), method, Globals.TypeOfStreamingContext), method.DeclaringType);
1256
ThrowInvalidDataContractException(string.Format(
SRSerialization
.ValueTypeCannotHaveBaseType, StableName.Name, StableName.Namespace, _baseContract.StableName.Name, _baseContract.StableName.Namespace));
1401
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.NonAttributedSerializableTypesMustHaveDefaultConstructor, DataContract.GetClrTypeFullName(type))));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (14)
88
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.CLRNamespaceMappedMultipleTimes, currentDataContractNamespace, dataContractNamespace, clrNamespace)));
286
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.UnexpectedContractType, DataContract.GetClrTypeFullName(dataContract.GetType()), DataContract.GetClrTypeFullName(dataContract.UnderlyingType))));
307
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.TypeCannotBeImported, typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.CircularTypeReference, classContract.StableName.Name, classContract.StableName.Namespace))));
436
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.CannotComputeUniqueName, typeName)));
551
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.ReferencedTypeDoesNotMatch, type.AssemblyQualifiedName, dataContract.StableName.Name, dataContract.StableName.Namespace)));
560
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.TypeMustBeIXmlSerializable, DataContract.GetClrTypeFullName(type), DataContract.GetClrTypeFullName(Globals.TypeOfIXmlSerializable), dataContract.StableName.Name, dataContract.StableName.Namespace)));
569
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.ReferencedTypeDoesNotMatch, type.AssemblyQualifiedName, dataContract.StableName.Name, dataContract.StableName.Namespace)));
576
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.GenericTypeNameMismatch, dataContract.StableName.Name, dataContract.StableName.Namespace, genericStableName.Name, genericStableName.Namespace)));
583
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.ReferencedTypeDoesNotMatch,
1055
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.CannotDeriveFromSealedReferenceType, dataContract.StableName.Name, dataContract.StableName.Namespace, DataContract.GetClrTypeFullName(baseType))));
1130
string.Format(
SRSerialization
.CannotUseGenericTypeAsBase, dataContractName,
1155
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.ReferencedBaseTypeDoesNotExist,
1511
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.CannotComputeUniqueName, nsFragment)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (14)
519
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.ParameterCountMismatch, methodInfo.Name, methodInfo.GetParameters().Length, expectedCount)));
714
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.NoGetMethodForProperty, property.DeclaringType, property)));
725
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.CannotLoadMemberType, "Unknown", memberInfo.DeclaringType, memberInfo.Name)));
756
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.NoSetMethodForProperty, property.DeclaringType, property)));
763
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.CannotLoadMemberType, "Unknown")));
833
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.CanOnlyStoreIntoArgOrLocGot0, DataContract.GetClrTypeFullName(var.GetType()))));
992
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(
SRSerialization
.CharIsInvalidPrimitive)));
1025
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.UnknownConstantType, DataContract.GetClrTypeFullName(valueType))));
1276
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.ArrayTypeIsNotSupported, DataContract.GetClrTypeFullName(arrayElementType))));
1338
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.ArrayTypeIsNotSupported, DataContract.GetClrTypeFullName(arrayElementType))));
1514
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.NoConversionPossibleTo, DataContract.GetClrTypeFullName(target))));
1529
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.IsNotAssignableFrom, DataContract.GetClrTypeFullName(target), DataContract.GetClrTypeFullName(source))));
1549
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.IsNotAssignableFrom, DataContract.GetClrTypeFullName(target), DataContract.GetClrTypeFullName(source))));
1575
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.ExpectingEnd, expected.ToString())));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (27)
548
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.GetOnlyCollectionMustHaveAddMethod, GetClrTypeFullName(UnderlyingType))));
631
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.InvalidCollectionContractItemName, DataContract.GetClrTypeFullName(UnderlyingType))));
638
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.InvalidCollectionContractKeyName, DataContract.GetClrTypeFullName(UnderlyingType))));
640
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.InvalidCollectionContractKeyNoDictionary, DataContract.GetClrTypeFullName(UnderlyingType), collectionContractAttribute.KeyName)));
646
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.InvalidCollectionContractValueName, DataContract.GetClrTypeFullName(UnderlyingType))));
648
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.InvalidCollectionContractValueNoDictionary, DataContract.GetClrTypeFullName(UnderlyingType), collectionContractAttribute.ValueName)));
682
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(
SRSerialization
.SupportForMultidimensionalArraysNotPresent)));
691
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.CollectionMustHaveGetEnumeratorMethod, DataContract.GetClrTypeFullName(type))));
693
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.CollectionMustHaveAddMethod, DataContract.GetClrTypeFullName(type))));
695
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.CollectionMustHaveItemType, DataContract.GetClrTypeFullName(type))));
741
string.Format(
SRSerialization
.DupKeyValueName, DataContract.GetClrTypeFullName(UnderlyingType), KeyName),
1001
SRSerialization
.CollectionTypeCannotBeBuiltIn, null, ref dataContract);
1012
SRSerialization
.CollectionTypeCannotHaveDataContract, null, ref dataContract);
1023
SRSerialization
.CollectionTypeIsNotIEnumerable, null, ref dataContract);
1090
SRSerialization
.CollectionTypeDoesNotHaveDefaultCtor, null, ref dataContract);
1123
SRSerialization
.CollectionTypeIsNotIEnumerable, null, ref dataContract);
1137
SRSerialization
.CollectionTypeDoesNotHaveAddMethod, DataContract.GetClrTypeFullName(itemType), ref dataContract);
1147
SRSerialization
.CollectionTypeHasMultipleDefinitionsOfInterface, KnownInterfaces[(int)kind - 1].Name, ref dataContract);
1199
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(GetInvalidCollectionMessage(message, string.Format(
SRSerialization
.InvalidCollectionDataContract, DataContract.GetClrTypeFullName(type)), param)));
1206
dataContract = new CollectionDataContract(type, GetInvalidCollectionMessage(message, string.Format(
SRSerialization
.InvalidCollectionType, DataContract.GetClrTypeFullName(type)), param));
1314
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.CollectionTypeDoesNotHaveDefaultCtor, DataContract.GetClrTypeFullName(this.UnderlyingType))));
1340
SRSerialization
.PartialTrustCollectionContractTypeNotPublic,
1352
SRSerialization
.PartialTrustCollectionContractTypeNotPublic,
1364
SRSerialization
.PartialTrustCollectionContractNoPublicConstructor,
1376
SRSerialization
.PartialTrustCollectionContractAddMethodNotPublic,
1400
SRSerialization
.PartialTrustCollectionContractTypeNotPublic,
1412
SRSerialization
.PartialTrustCollectionContractTypeNotPublic,
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ContractCodeDomInfo.cs (2)
28
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.CannotSetNamespaceForReferencedType, TypeReference.BaseType)));
37
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.CannotSetMembersForReferencedType, TypeReference.BaseType)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (33)
148
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(string.Format(
SRSerialization
.ErrorDeserializing, string.Format(
SRSerialization
.ErrorTypeInfo, DataContract.GetClrTypeFullName(dataContract.UnderlyingType)), string.Format(
SRSerialization
.NoSetMethodForProperty, string.Empty, string.Empty))));
309
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.UnexpectedContractType, DataContract.GetClrTypeFullName(this.GetType()), DataContract.GetClrTypeFullName(UnderlyingType))));
314
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.UnexpectedContractType, DataContract.GetClrTypeFullName(this.GetType()), DataContract.GetClrTypeFullName(UnderlyingType))));
610
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(string.Format(
SRSerialization
.DataContractCacheOverflow)));
630
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(string.Format(
SRSerialization
.DataContractCacheOverflow)));
654
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(string.Format(
SRSerialization
.DataContractCacheOverflow)));
717
ThrowInvalidDataContractException(string.Format(
SRSerialization
.TypeNotSerializable, type), type);
774
ThrowInvalidDataContractException(string.Format(
SRSerialization
.TypeNotSerializable, type), type);
1322
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.RecursiveCollectionType, GetClrTypeFullName(itemType))));
1452
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.InvalidDataContractName, DataContract.GetClrTypeFullName(type))));
1464
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.InvalidDataContractNamespace, DataContract.GetClrTypeFullName(type))));
1543
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.TooManyDataContracts, DataContract.GetClrTypeFullName(type))));
1585
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.TooManyCollectionContracts, DataContract.GetClrTypeFullName(type))));
1592
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.InvalidCollectionContractName, DataContract.GetClrTypeFullName(type))));
1604
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.InvalidCollectionContractNamespace, DataContract.GetClrTypeFullName(type))));
1798
ThrowInvalidDataContractException(string.Format(
SRSerialization
.DataContractNamespaceIsNotValid, dataContractNs), type);
1805
ThrowInvalidDataContractException(string.Format(
SRSerialization
.DataContractNamespaceReserved, Globals.SerializationNamespace), type);
1808
ThrowInvalidDataContractException(string.Format(
SRSerialization
.DataContractNamespaceIsNotValid, dataContractNs), type);
1851
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.InvalidGlobalDataContractNamespace, clrNs)));
1853
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.DataContractNamespaceAlreadySet, dataContractNs, nsAttribute.ContractNamespace, clrNs)));
2022
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.GenericNameBraceMismatch, format, genericNameProvider.GetGenericTypeName())));
2041
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.GenericParameterNotValid, format.Substring(start, i - start), genericNameProvider.GetGenericTypeName(), genericNameProvider.GetParameterCount() - 1)));
2088
DataContract.ThrowInvalidDataContractException(string.Format(
SRSerialization
.KnownTypeAttributeOneScheme, DataContract.GetClrTypeFullName(type)), type);
2098
DataContract.ThrowInvalidDataContractException(string.Format(
SRSerialization
.KnownTypeAttributeOneScheme, DataContract.GetClrTypeFullName(type)), type);
2104
DataContract.ThrowInvalidDataContractException(string.Format(
SRSerialization
.KnownTypeAttributeNoData, DataContract.GetClrTypeFullName(type)), type);
2108
DataContract.ThrowInvalidDataContractException(string.Format(
SRSerialization
.KnownTypeAttributeEmptyString, DataContract.GetClrTypeFullName(type)), type);
2112
DataContract.ThrowInvalidDataContractException(string.Format(
SRSerialization
.KnownTypeAttributeUnknownMethod, methodName, DataContract.GetClrTypeFullName(type)), type);
2115
DataContract.ThrowInvalidDataContractException(string.Format(
SRSerialization
.KnownTypeAttributeReturnType, DataContract.GetClrTypeFullName(type), methodName), type);
2120
DataContract.ThrowInvalidDataContractException(string.Format(
SRSerialization
.KnownTypeAttributeMethodNull, DataContract.GetClrTypeFullName(type)), type);
2126
DataContract.ThrowInvalidDataContractException(string.Format(
SRSerialization
.KnownTypeAttributeValidMethodTypes, DataContract.GetClrTypeFullName(type)), type);
2182
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.DupContractInKnownTypes, type, alreadyExistingContract.UnderlyingType, dataContract.StableName.Namespace, dataContract.StableName.Name)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSerializer.cs (7)
120
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("maxItemsInObjectGraph", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
308
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.ExceededMaxItemsQuota, MaxItemsInObjectGraph)));
325
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.IsAnyCannotBeNull, declaredType)));
349
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.IsAnyCannotBeSerializedAsDerivedType, graphType, contract.UnderlyingType)));
397
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.ExceededMaxItemsQuota, MaxItemsInObjectGraph)));
422
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationExceptionWithReaderDetails(string.Format(
SRSerialization
.ExpectingElement, expectedNs, expectedName), xmlReader));
427
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationExceptionWithReaderDetails(string.Format(
SRSerialization
.ExpectingElementAtDeserialize, XmlNodeType.Element), xmlReader));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (10)
107
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.GenericTypeNotExportable, type)));
130
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.DupContractInDataContractSet, dataContract.StableName.Name, dataContract.StableName.Namespace)));
134
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.DupTypeContractInDataContractSet, (typeNamesEqual ? dataContract.UnderlyingType.AssemblyQualifiedName : DataContract.GetClrTypeFullName(dataContract.UnderlyingType)), (typeNamesEqual ? dataContractInSet.UnderlyingType.AssemblyQualifiedName : DataContract.GetClrTypeFullName(dataContractInSet.UnderlyingType)), dataContract.StableName.Name, dataContract.StableName.Namespace)));
265
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.SurrogatesWithGetOnlyCollectionsNotSupported,
361
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.ReferencedTypesCannotContainNull)));
380
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.ReferencedCollectionTypesCannotContainNull)));
478
(useReferencedCollectionTypes ?
SRSerialization
.AmbiguousReferencedCollectionTypes1 :
SRSerialization
.AmbiguousReferencedTypes1),
484
(useReferencedCollectionTypes ?
SRSerialization
.AmbiguousReferencedCollectionTypes3 :
SRSerialization
.AmbiguousReferencedTypes3),
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataMemberAttribute.cs (1)
37
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.OrderCannotBeNegative)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\EnumDataContract.cs (9)
211
string.Format(
SRSerialization
.EnumTypeCannotHaveIsReference,
231
ThrowInvalidDataContractException(string.Format(
SRSerialization
.InvalidEnumBaseType, value.Name, value.Namespace, StableName.Name, StableName.Namespace));
289
ThrowInvalidDataContractException(string.Format(
SRSerialization
.TooManyEnumMembers, DataContract.GetClrTypeFullName(field.DeclaringType), field.Name));
296
ThrowInvalidDataContractException(string.Format(
SRSerialization
.InvalidEnumMemberValue, field.Name, DataContract.GetClrTypeFullName(type)));
307
ThrowInvalidDataContractException(string.Format(
SRSerialization
.DataMemberOnEnumField, DataContract.GetClrTypeFullName(field.DeclaringType), field.Name));
371
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.InvalidEnumValueOnWrite, value, DataContract.GetClrTypeFullName(UnderlyingType))));
377
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.InvalidEnumValueOnWrite, value, DataContract.GetClrTypeFullName(UnderlyingType))));
417
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.InvalidEnumValueOnRead, stringValue, DataContract.GetClrTypeFullName(UnderlyingType))));
436
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.InvalidEnumValueOnRead, value.Substring(index, count), DataContract.GetClrTypeFullName(UnderlyingType))));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (1)
455
string.Format(
SRSerialization
.DupMemberName,
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExtensionDataReader.cs (4)
159
throw new XmlException(
SRSerialization
.InvalidXmlDeserializingExtensionData);
254
throw new XmlException(
SRSerialization
.InvalidXmlDeserializingExtensionData);
328
throw new XmlException(
SRSerialization
.InvalidXmlDeserializingExtensionData);
344
throw new SerializationException(
SRSerialization
.InvalidStateInExtensionDataReader);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\HybridObjectCache.cs (1)
28
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.MultipleIdDefinition, id)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ObjectToIdCache.cs (2)
88
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.ObjectTableOverflow)));
108
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.ObjectTableOverflow)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\PrimitiveDataContract.cs (2)
161
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.CannotDeserializeRefAtTopLevel, attributes.Ref)));
716
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.XmlForObjectCannotHaveContent, localName, ns), xes));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaExporter.cs (5)
24
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.InvalidXmlDataContractName, DataContract.GetClrTypeFullName(type))));
53
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.InvalidGetSchemaMethod, DataContract.GetClrTypeFullName(clrType))));
60
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.MissingGetSchemaMethod, DataContract.GetClrTypeFullName(clrType), methodName)));
63
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.InvalidReturnTypeOnGetSchemaMethod, DataContract.GetClrTypeFullName(clrType), methodName, DataContract.GetClrTypeFullName(getMethod.ReturnType), DataContract.GetClrTypeFullName(Globals.TypeOfXmlQualifiedName))));
70
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.InvalidNonNullReturnValueByIsAny, DataContract.GetClrTypeFullName(clrType), methodName)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (74)
55
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.CouldNotReadSerializationSchema, Globals.SerializationNamespace)));
70
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.CannotImportInvalidSchemas), ex));
79
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.CannotImportNullSchema)));
102
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.CannotImportNullDataContractName)));
380
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.CannotComputeUniqueName, element.Name)));
396
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.SpecifiedTypeNotFoundInSchema, typeName.Name, typeName.Namespace)));
422
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.RedefineNotSupported));
430
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.SimpleTypeUnionNotSupported));
462
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.SimpleContentNotSupported));
467
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.MixedContentNotSupported));
481
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.ComplexTypeRestrictionNotSupported));
639
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.RootParticleMustBeSequence));
644
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.RootSequenceMustBeRequired));
646
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.RootSequenceMaxOccursMustBe));
677
ThrowTypeCannotBeImportedException(dataContract.StableName.Name, dataContract.StableName.Namespace, string.Format(
SRSerialization
.DerivedTypeNotISerializable, baseTypeName.Name, baseTypeName.Namespace));
693
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.MustContainOnlyLocalElements));
827
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.IsValueTypeFormattedIncorrectly, isValueTypeInnerText, fe.Message));
850
ThrowISerializableTypeCannotBeImportedException(dataContract.StableName.Name, dataContract.StableName.Namespace, string.Format(
SRSerialization
.BaseTypeNotISerializable, baseTypeName.Name, baseTypeName.Namespace));
852
ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.ISerializableDerivedContainsOneOrMoreItems));
861
ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.ISerializableDoesNotContainAny));
864
ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.ISerializableDoesNotContainAny));
866
ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.ISerializableContainsMoreThanOneItems));
870
ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.ISerializableDoesNotContainAny));
875
ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.ISerializableWildcardMinOccursMustBe, iSerializableWildcardElement.MinOccurs));
877
ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.ISerializableWildcardMaxOccursMustBe, iSerializableWildcardElement.MaxOccursString));
879
ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.ISerializableWildcardNamespaceInvalid, iSerializableWildcardElement.Namespace));
881
ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.ISerializableWildcardProcessContentsInvalid, iSerializableWildcardElement.ProcessContents));
901
ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.ISerializableMustRefFactoryTypeAttribute, factoryTypeAttributeRefName.Name, factoryTypeAttributeRefName.Namespace));
916
ThrowTypeCannotBeImportedException(dataContract.StableName.Name, dataContract.StableName.Namespace, string.Format(dataContract.IsISerializable ?
SRSerialization
.InvalidISerializableDerivation :
SRSerialization
.InvalidClassDerivation, baseTypeName.Name, baseTypeName.Namespace));
950
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.AnonymousTypeNotSupported, typeName.Name, typeName.Namespace));
955
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.TopLevelElementRepresentsDifferentType, topLevelElement.SchemaTypeName.Name, topLevelElement.SchemaTypeName.Namespace));
965
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.ElementMinOccursMustBe, element.Name));
967
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.ElementMaxOccursMustBe, element.Name));
978
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.FormMustBeQualified, element.Name));
986
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.ElementRefOnLocalElementNotSupported, element.RefName.Name, element.RefName.Namespace));
1001
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.InvalidEmitDefaultAnnotation, memberName, typeName.Name, typeName.Namespace)));
1016
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.CannotHaveDuplicateElementNames, memberName));
1036
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.AnnotationAttributeNotFound, SchemaExporter.DefaultValueAnnotation.Name, typeName.Name, typeName.Namespace, Globals.EmitDefaultValueAttribute)));
1049
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.AnnotationAttributeNotFound, SchemaExporter.ActualTypeAnnotationName.Name, typeName.Name, typeName.Namespace, Globals.ActualTypeNameAttribute)));
1053
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.AnnotationAttributeNotFound, SchemaExporter.ActualTypeAnnotationName.Name, typeName.Name, typeName.Namespace, Globals.ActualTypeNamespaceAttribute)));
1076
ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.ArrayItemFormMustBe, element.Name));
1096
ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.ElementRefOnLocalElementNotSupported, element.RefName.Name, element.RefName.Namespace));
1112
ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.InvalidKeyValueType, element.Name));
1116
ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.InvalidKeyValueTypeNamespace, element.Name, keyValueContract.Namespace));
1163
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.IsDictionaryFormattedIncorrectly, isDictionaryInnerText, fe.Message));
1173
ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.EnumListMustContainAnonymousType));
1177
ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.EnumUnionInAnonymousTypeNotSupported));
1179
ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.EnumListInAnonymousTypeNotSupported));
1186
ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.EnumRestrictionInvalid));
1209
ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.EnumOnlyEnumerationFacetsSupported));
1211
ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.EnumEnumerationFacetsMustHaveValue));
1233
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.SimpleTypeRestrictionDoesNotSpecifyBase));
1295
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.GenericAnnotationAttributeNotFound, type.Name, Globals.GenericNameAttribute)));
1299
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.GenericAnnotationAttributeNotFound, type.Name, Globals.GenericNamespaceAttribute)));
1312
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.GenericAnnotationHasInvalidElement, argumentElement.LocalName, argumentElement.NamespaceURI, type.Name)));
1318
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.GenericAnnotationHasInvalidAttributeValue, argumentElement.LocalName, argumentElement.NamespaceURI, type.Name, nestedLevelAttribute.Value, nestedLevelAttribute.LocalName, Globals.TypeOfInt.Name)));
1321
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.GenericAnnotationForNestedLevelMustBeIncreasing, argumentElement.LocalName, argumentElement.NamespaceURI, type.Name)));
1332
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.GenericAnnotationHasInvalidAttributeValue, typeElement.LocalName, typeElement.NamespaceURI, type.Name, typeNestedLevelsAttribute.Value, typeNestedLevelsAttribute.LocalName, Globals.TypeOfInt.Name)));
1356
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.AbstractTypeNotSupported));
1358
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.MixedContentNotSupported));
1364
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.AbstractElementNotSupported, element.Name));
1366
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.DefaultOnElementNotSupported, element.Name));
1368
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.FixedOnElementNotSupported, element.Name));
1370
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.SubstitutionGroupOnElementNotSupported, element.Name));
1376
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.AnyAttributeNotSupported));
1395
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.TypeShouldNotContainAttributes, Globals.SerializationNamespace));
1407
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.CannotHaveDuplicateAttributeNames, refName.Name));
1425
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(
SRSerialization
.InvalidAnnotationExpectingText, xmlElement.LocalName, xmlElement.NamespaceURI, child.LocalName, child.NamespaceURI));
1454
ThrowTypeCannotBeImportedException(string.Format(
SRSerialization
.TypeCannotBeImported, name, ns, message));
1459
ThrowTypeCannotBeImportedException(string.Format(
SRSerialization
.ArrayTypeCannotBeImported, name, ns, message));
1464
ThrowTypeCannotBeImportedException(string.Format(
SRSerialization
.EnumTypeCannotBeImported, name, ns, message));
1469
ThrowTypeCannotBeImportedException(string.Format(
SRSerialization
.ISerializableTypeCannotBeImported, name, ns, message));
1474
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.TypeCannotBeImportedHowToFix, message)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlDataContract.cs (6)
235
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.IXmlSerializableCannotHaveDataContract, DataContract.GetClrTypeFullName(type))));
237
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.IXmlSerializableCannotHaveCollectionDataContract, DataContract.GetClrTypeFullName(type))));
270
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.IsAnyCannotHaveXmlRoot, DataContract.GetClrTypeFullName(UnderlyingType))));
364
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.IXmlSerializableMustHaveDefaultConstructor, DataContract.GetClrTypeFullName(type))));
461
new SecurityException(string.Format(
SRSerialization
.PartialTrustIXmlSerializableTypeNotPublic, DataContract.GetClrTypeFullName(UnderlyingType)),
472
new SecurityException(string.Format(
SRSerialization
.PartialTrustIXmlSerialzableNoPublicConstructor, DataContract.GetClrTypeFullName(UnderlyingType)),
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatReaderGenerator.cs (3)
405
ThrowValidationException(string.Format(
SRSerialization
.ValueTypeCannotBeNull, DataContract.GetClrTypeFullName(type)));
421
ThrowValidationException(string.Format(
SRSerialization
.ValueTypeCannotHaveId, DataContract.GetClrTypeFullName(type)));
444
ThrowValidationException(string.Format(
SRSerialization
.ValueTypeCannotHaveRef, DataContract.GetClrTypeFullName(type)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializer.cs (16)
76
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(GetTypeInfoError(
SRSerialization
.ErrorSerializing, GetSerializeType(graph), ex), ex));
80
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(GetTypeInfoError(
SRSerialization
.ErrorSerializing, GetSerializeType(graph), ex), ex));
129
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(GetTypeInfoError(
SRSerialization
.ErrorWriteStartObject, GetSerializeType(graph), ex), ex));
133
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(GetTypeInfoError(
SRSerialization
.ErrorWriteStartObject, GetSerializeType(graph), ex), ex));
144
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.XmlWriterMustBeInElement, writer.WriteState)));
150
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(GetTypeInfoError(
SRSerialization
.ErrorSerializing, GetSerializeType(graph), ex), ex));
154
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(GetTypeInfoError(
SRSerialization
.ErrorSerializing, GetSerializeType(graph), ex), ex));
167
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(GetTypeInfoError(
SRSerialization
.ErrorWriteEndObject, null, ex), ex));
171
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(GetTypeInfoError(
SRSerialization
.ErrorWriteEndObject, null, ex), ex));
284
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(GetTypeInfoError(
SRSerialization
.ErrorDeserializing, GetDeserializeType(), ex), ex));
288
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(GetTypeInfoError(
SRSerialization
.ErrorDeserializing, GetDeserializeType(), ex), ex));
301
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(GetTypeInfoError(
SRSerialization
.ErrorIsStartObject, GetDeserializeType(), ex), ex));
305
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(GetTypeInfoError(
SRSerialization
.ErrorIsStartObject, GetDeserializeType(), ex), ex));
362
return String.Format(CultureInfo.InvariantCulture, "{0} {1}", string.Format(
SRSerialization
.ErrorInLine, reader.LineNumber, reader.LinePosition), errorMessage);
368
return XmlObjectSerializer.CreateSerializationException(TryAddLineInfo(reader, string.Format(
SRSerialization
.EncounteredWithNameNamespace, errorMessage, reader.NodeType, reader.LocalName, reader.NamespaceURI)));
383
string typeInfo = (type == null) ? string.Empty : string.Format(
SRSerialization
.ErrorTypeInfo, DataContract.GetClrTypeFullName(type));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerContext.cs (3)
94
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.ExceededMaxItemsQuota, _maxItemsInObjectGraph)));
170
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.TypeNotSerializable, memberType)));
209
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.NullKnownType, "knownTypes")));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (14)
72
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.NullValueReturnedForGetOnlyCollection, DataContract.GetClrTypeFullName(type))));
81
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.ArrayExceededSize, arraySize, DataContract.GetClrTypeFullName(type))));
134
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.ErrorDeserializing, string.Format(
SRSerialization
.ErrorTypeInfo, DataContract.GetClrTypeFullName(declaredType)), string.Format(
SRSerialization
.XmlStartElementExpected, Globals.RefLocalName))));
171
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(XmlObjectSerializer.TryAddLineInfo(reader, string.Format(
SRSerialization
.DcTypeNotFoundOnDeserialize, attributes.XsiTypeNamespace, attributes.XsiTypeName, reader.NamespaceURI, reader.LocalName))));
173
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(XmlObjectSerializer.TryAddLineInfo(reader, string.Format(
SRSerialization
.DcTypeNotResolvedOnDeserialize, attributes.XsiTypeNamespace, attributes.XsiTypeName, reader.NamespaceURI, reader.LocalName))));
263
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(XmlObjectSerializer.TryAddLineInfo(xmlReader, string.Format(
SRSerialization
.UnexpectedElementExpectingElements, xmlReader.NodeType, xmlReader.LocalName, xmlReader.NamespaceURI, stringBuilder.ToString()))));
423
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.FactoryObjectContainsSelfReference, DataContract.GetClrTypeFullName(oldObj.GetType()), DataContract.GetClrTypeFullName(newObj.GetType()), id)));
437
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.DeserializedObjectWithIdNotFound, id)));
449
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.UnexpectedEndOfFile)));
474
string.Format(
SRSerialization
.MaxArrayLengthExceeded, Int32.MaxValue,
511
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.ArrayExceededSizeAttribute, arraySize, itemName.Value, itemNamespace.Value)));
573
return XmlObjectSerializer.CreateSerializationExceptionWithReaderDetails(string.Format(
SRSerialization
.ExpectingState, expectedState), xmlReader);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (8)
99
throw XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.AssemblyNotFound, assemblyName));
101
throw XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.ClrTypeNotFound, assembly.FullName, typeName));
110
throw XmlObjectSerializer.CreateSerializationException(XmlObjectSerializer.TryAddLineInfo(xmlReader, string.Format(
SRSerialization
.AttributeNotFound, Globals.SerializationNamespace, Globals.ClrTypeLocalName, xmlReader.NodeType, xmlReader.NamespaceURI, xmlReader.LocalName)));
112
throw XmlObjectSerializer.CreateSerializationException(XmlObjectSerializer.TryAddLineInfo(xmlReader, string.Format(
SRSerialization
.AttributeNotFound, Globals.SerializationNamespace, Globals.ClrAssemblyLocalName, xmlReader.NodeType, xmlReader.NamespaceURI, xmlReader.LocalName)));
114
throw XmlObjectSerializer.CreateSerializationException(XmlObjectSerializer.TryAddLineInfo(xmlReader, string.Format(
SRSerialization
.AttributeNotFound, Globals.SerializationNamespace, Globals.ClrTypeLocalName, xmlReader.NodeType, xmlReader.NamespaceURI, xmlReader.LocalName)));
126
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.SurrogatesWithGetOnlyCollectionsNotSupportedSerDeser, DataContract.GetClrTypeFullName(declaredType))));
179
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.TypeNotSerializable, memberType)));
198
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.SurrogatesWithGetOnlyCollectionsNotSupportedSerDeser,
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (7)
273
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.DcTypeNotFoundOnSerialize, DataContract.GetClrTypeFullName(dataContract.UnderlyingType), dataContract.StableName.Name, dataContract.StableName.Namespace)));
422
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.CannotSerializeObjectWithCycles, DataContract.GetClrTypeFullName(obj.GetType()))));
529
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(string.Format(
SRSerialization
.RequiredMemberMustBeEmitted, memberName, type.FullName)));
571
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.UnknownXmlType, DataContract.GetClrTypeFullName(obj.GetType()))));
602
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.ResolveTypeReturnedFalse, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType))));
612
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.ResolveTypeReturnedNull, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType))));
617
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.ResolveTypeReturnedNull, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType))));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (2)
222
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.TypeNotSerializable, memberType)));
241
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(
SRSerialization
.SurrogatesWithGetOnlyCollectionsNotSupportedSerDeser,
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (5)
52
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("i", string.Format(
SRSerialization
.XmlElementAttributes)));
152
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("i", string.Format(
SRSerialization
.XmlElementAttributes)));
223
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(XmlObjectSerializer.TryAddLineInfo(this, string.Format(
SRSerialization
.XmlInvalidConversion, value, type))));
228
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(
SRSerialization
.XmlStartElementExpected, "EndElement")));
632
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.ArrayExceededSizeAttribute, expectedLength, itemName.Value, itemNamespace.Value)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlSerializableReader.cs (1)
68
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.IXmlSerializableIllegalOperation)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlSerializableServices.cs (2)
29
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(
SRSerialization
.UnexpectedEndOfFile));
43
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(
SRSerialization
.UnexpectedEndOfFile));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlSerializableWriter.cs (4)
27
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.IXmlSerializableMissingEndElements, (_obj == null ? string.Empty : DataContract.GetClrTypeFullName(_obj.GetType())))));
56
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.IXmlSerializableWritePastSubTree, (_obj == null ? string.Empty : DataContract.GetClrTypeFullName(_obj.GetType())))));
64
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.IXmlSerializableWritePastSubTree, (_obj == null ? string.Empty : DataContract.GetClrTypeFullName(_obj.GetType())))));
71
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(
SRSerialization
.IXmlSerializableIllegalOperation)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlWriterDelegator.cs (1)
289
return new InvalidDataContractException(string.Format(
SRSerialization
.InvalidPrimitiveType, DataContract.GetClrTypeFullName(type)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XsdDataContractImporter.cs (2)
189
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.TypeHasNotBeenImported, typeName.Name, typeName.Namespace)));
204
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.TypeHasNotBeenImported, typeName.Name, typeName.Namespace)));
FrameworkFork\System.Runtime.Serialization\System\Text\Base64Encoding.cs (44)
40
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
42
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(
SRSerialization
.XmlInvalidBase64Length, charCount.ToString(NumberFormatInfo.CurrentInfo))));
68
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
70
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(
SRSerialization
.OffsetExceedsBufferSize, chars.Length)));
72
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
74
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, chars.Length - index)));
79
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(
SRSerialization
.XmlInvalidBase64Length, count.ToString(NumberFormatInfo.CurrentInfo))));
96
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(
SRSerialization
.XmlInvalidBase64Sequence, new string(pch, 0, 4), index + (int)(pch - _chars))));
106
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(
SRSerialization
.XmlInvalidBase64Sequence, new string(pch, 0, 4), index + (int)(pch - _chars))));
128
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
130
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(
SRSerialization
.OffsetExceedsBufferSize, chars.Length)));
133
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
135
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, chars.Length - charIndex)));
140
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
142
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(
SRSerialization
.OffsetExceedsBufferSize, bytes.Length)));
147
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(
SRSerialization
.XmlInvalidBase64Length, charCount.ToString(NumberFormatInfo.CurrentInfo))));
167
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(
SRSerialization
.XmlInvalidBase64Sequence, new string(pch, 0, 4), charIndex + (int)(pch - _chars))));
177
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(
SRSerialization
.XmlInvalidBase64Sequence, new string(pch, 0, 4), charIndex + (int)(pch - _chars))));
181
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlArrayTooSmall), "bytes"));
211
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
213
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(
SRSerialization
.OffsetExceedsBufferSize, chars.Length)));
216
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
218
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, chars.Length - charIndex)));
223
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
225
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(
SRSerialization
.OffsetExceedsBufferSize, bytes.Length)));
230
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(
SRSerialization
.XmlInvalidBase64Length, charCount.ToString(NumberFormatInfo.CurrentInfo))));
249
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(
SRSerialization
.XmlInvalidBase64Sequence, "?", charIndex + (int)(pch - _chars))));
259
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(
SRSerialization
.XmlInvalidBase64Sequence, "?", charIndex + (int)(pch - _chars))));
263
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlArrayTooSmall), "bytes"));
285
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(
SRSerialization
.ValueMustBeInRange, 0, int.MaxValue / 4 * 3 - 2)));
304
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
306
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(
SRSerialization
.OffsetExceedsBufferSize, bytes.Length)));
308
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
310
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex)));
316
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
318
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(
SRSerialization
.OffsetExceedsBufferSize, chars.Length)));
320
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlArrayTooSmall), "chars"));
398
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
400
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(
SRSerialization
.OffsetExceedsBufferSize, bytes.Length)));
402
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
404
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex)));
410
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
412
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(
SRSerialization
.OffsetExceedsBufferSize, chars.Length)));
415
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlArrayTooSmall), "chars"));
FrameworkFork\System.Runtime.Serialization\System\Text\BinHexEncoding.cs (19)
38
throw new ArgumentOutOfRangeException("charCount",
SRSerialization
.ValueMustBeNonNegative);
40
throw new FormatException(string.Format(
SRSerialization
.XmlInvalidBinHexLength, charCount.ToString(NumberFormatInfo.CurrentInfo)));
55
throw new ArgumentOutOfRangeException("charIndex",
SRSerialization
.ValueMustBeNonNegative);
57
throw new ArgumentOutOfRangeException("charIndex", string.Format(
SRSerialization
.OffsetExceedsBufferSize, chars.Length));
59
throw new ArgumentOutOfRangeException("charCount",
SRSerialization
.ValueMustBeNonNegative);
61
throw new ArgumentOutOfRangeException("charCount", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, chars.Length - charIndex));
65
throw new ArgumentOutOfRangeException("byteIndex",
SRSerialization
.ValueMustBeNonNegative);
67
throw new ArgumentOutOfRangeException("byteIndex", string.Format(
SRSerialization
.OffsetExceedsBufferSize, bytes.Length));
70
throw new ArgumentException(
SRSerialization
.XmlArrayTooSmall, "bytes");
87
throw new FormatException(string.Format(
SRSerialization
.XmlInvalidBinHexSequence, new string(pch, 0, 2), charIndex + (int)(pch - _chars)));
91
throw new FormatException(string.Format(
SRSerialization
.XmlInvalidBinHexSequence, new string(pch, 0, 2), charIndex + (int)(pch - _chars)));
111
throw new ArgumentOutOfRangeException("byteCount", string.Format(
SRSerialization
.ValueMustBeInRange, 0, int.MaxValue / 2));
126
throw new ArgumentOutOfRangeException("byteIndex",
SRSerialization
.ValueMustBeNonNegative);
128
throw new ArgumentOutOfRangeException("byteIndex", string.Format(
SRSerialization
.OffsetExceedsBufferSize, bytes.Length));
130
throw new ArgumentOutOfRangeException("byteCount",
SRSerialization
.ValueMustBeNonNegative);
132
throw new ArgumentOutOfRangeException("byteCount", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex));
137
throw new ArgumentOutOfRangeException("charIndex",
SRSerialization
.ValueMustBeNonNegative);
139
throw new ArgumentOutOfRangeException("charIndex", string.Format(
SRSerialization
.OffsetExceedsBufferSize, chars.Length));
141
throw new ArgumentException(
SRSerialization
.XmlArrayTooSmall, "chars");
FrameworkFork\System.Runtime.Serialization\System\Text\SurrogateChar.cs (3)
27
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlInvalidSurrogate, ch.ToString("X", CultureInfo.InvariantCulture)), "ch"));
38
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlInvalidLowSurrogate, ((int)lowChar).ToString("X", CultureInfo.InvariantCulture)), "lowChar"));
41
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlInvalidHighSurrogate, ((int)highChar).ToString("X", CultureInfo.InvariantCulture)), "highChar"));
FrameworkFork\System.Runtime.Serialization\System\Xml\EncodingStreamWrapper.cs (23)
105
throw new XmlException(
SRSerialization
.XmlDeclarationRequired);
111
throw new XmlException(
SRSerialization
.XmlInvalidBytes, ex);
136
throw new XmlException(
SRSerialization
.XmlEncodingNotSupported);
154
throw new XmlException(
SRSerialization
.XmlEncodingNotSupported);
172
throw new XmlException(
SRSerialization
.XmlEncodingNotSupported);
187
throw new XmlException(
SRSerialization
.XmlEncodingNotSupported);
225
throw new XmlException(
SRSerialization
.UnexpectedEndOfFile);
279
throw new XmlException(
SRSerialization
.XmlDeclMissing);
287
throw new XmlException(
SRSerialization
.XmlDeclMissing);
294
throw new XmlException(
SRSerialization
.XmlBadBOM);
379
throw new XmlException(
SRSerialization
.XmlDeclarationRequired);
384
throw new XmlException(
SRSerialization
.XmlMalformedDecl);
393
throw new XmlException(
SRSerialization
.XmlDeclarationRequired);
402
throw new XmlException(
SRSerialization
.XmlMalformedDecl);
409
throw new XmlException(
SRSerialization
.XmlMalformedDecl);
473
throw new XmlException(
SRSerialization
.UnexpectedEndOfFile);
523
throw new XmlException(
SRSerialization
.XmlDeclarationRequired);
531
throw new XmlException(
SRSerialization
.XmlInvalidBytes, e);
537
throw new XmlException(string.Format(
SRSerialization
.XmlExpectedEncoding, GetEncodingName(expEnc), GetEncodingName(actualEnc)));
547
throw new XmlException(string.Format(
SRSerialization
.XmlEncodingMismatch, declEnc, docEnc));
653
throw new XmlException(
SRSerialization
.XmlInvalidBytes, ex);
666
throw new XmlException(
SRSerialization
.UnexpectedEndOfFile);
687
throw new XmlException(
SRSerialization
.UnexpectedEndOfFile);
FrameworkFork\System.Runtime.Serialization\System\Xml\UniqueId.cs (15)
89
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
91
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.OffsetExceedsBufferSize, guid.Length)));
93
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlArrayTooSmallInput, guidLength), "guid"));
111
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(
SRSerialization
.XmlInvalidUniqueId)));
129
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
131
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.OffsetExceedsBufferSize, chars.Length)));
133
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
135
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, chars.Length - offset)));
137
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(
SRSerialization
.XmlInvalidUniqueId)));
273
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
275
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.OffsetExceedsBufferSize, chars.Length)));
278
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("chars", string.Format(
SRSerialization
.XmlArrayTooSmallOutput, count)));
360
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
362
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.OffsetExceedsBufferSize, buffer.Length)));
365
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("buffer", string.Format(
SRSerialization
.XmlArrayTooSmallOutput, guidLength)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (29)
142
XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(
SRSerialization
.XmlDeclMissingVersion)));
145
XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(
SRSerialization
.XmlMalformedDecl)));
148
if (!CheckDeclAttribute(0, "version", "1.0", false,
SRSerialization
.XmlInvalidVersion))
149
XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(
SRSerialization
.XmlDeclMissingVersion)));
155
if (CheckDeclAttribute(1, "encoding", null, true,
SRSerialization
.XmlInvalidEncoding))
158
XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(
SRSerialization
.XmlMalformedDecl)));
162
XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(
SRSerialization
.XmlMalformedDecl)));
178
XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(
SRSerialization
.XmlMalformedDecl)));
184
XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(
SRSerialization
.XmlInvalidStandalone)));
193
XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(
SRSerialization
.XmlMalformedDecl)));
373
XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(
SRSerialization
.XmlSpecificBindingPrefix, "xml", xmlNamespace)));
377
XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(
SRSerialization
.XmlSpecificBindingPrefix, "xmlns", xmlnsNamespace)));
524
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(
SRSerialization
.XmlElementAttributes)));
526
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
528
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(
SRSerialization
.OffsetExceedsBufferSize, _attributeCount)));
1148
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
1150
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.OffsetExceedsBufferSize, chars.Length)));
1152
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
1154
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, chars.Length - offset)));
1178
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
1180
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.OffsetExceedsBufferSize, buffer.Length)));
1182
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
1184
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, buffer.Length - offset)));
1245
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlEndElementNoOpenNodes)));
1338
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
1340
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.OffsetExceedsBufferSize, buffer.Length)));
1342
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
1344
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, buffer.Length - offset)));
1674
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlInvalidOperation)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (62)
102
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlWriterClosed)));
139
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlInvalidWriteState, "WriteXmlnsAttribute", WriteState.ToString())));
164
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlInvalidWriteState, "WriteXmlnsAttribute", WriteState.ToString())));
192
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlInvalidWriteState, "WriteStartAttribute", WriteState.ToString())));
216
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlPrefixBoundToNamespace, "xml", xmlNamespace, ns), "ns"));
224
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlPrefixBoundToNamespace, "xmlns", xmlnsNamespace, ns), "ns"));
242
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlUndefinedPrefix, prefix), "prefix"));
249
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlEmptyNamespaceRequiresNullPrefix), "prefix"));
261
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlSpecificBindingNamespace, "xmlns", ns)));
263
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlSpecificBindingNamespace, "xml", ns)));
299
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlInvalidWriteState, "WriteEndAttribute", WriteState.ToString())));
322
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlInvalidXmlSpace, _attributeValue)));
375
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlInvalidXmlSpace, _attributeValue)));
411
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlInvalidWriteState, "WriteComment", WriteState.ToString())));
419
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlInvalidCommentChars), "text"));
437
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlInvalidWriteState, "WriteFullEndElement", WriteState.ToString())));
449
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlInvalidWriteState, "WriteCData", WriteState.ToString())));
465
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(
SRSerialization
.XmlMethodNotSupported, "WriteDocType")));
474
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlOnlyOneRoot)));
478
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.InvalidLocalNameEmpty), "localName"));
480
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString())));
493
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlUndefinedPrefix, prefix), "prefix"));
519
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlOnlyOneRoot)));
523
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.InvalidLocalNameEmpty), "localName"));
525
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString())));
547
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlUndefinedPrefix, prefix), "prefix"));
587
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlInvalidDepth, "WriteEndElement", _depth.ToString(CultureInfo.InvariantCulture))));
666
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlIllegalOutsideRoot)));
673
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlIllegalOutsideRoot)));
700
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlIllegalOutsideRoot)));
707
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlIllegalOutsideRoot)));
714
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlIllegalOutsideRoot)));
780
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlNamespaceNotFound, namespaceUri), "namespaceUri"));
794
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.InvalidLocalNameEmpty), "localName"));
813
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.InvalidLocalNameEmpty), "localName"));
836
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlInvalidWriteState, "WriteStartDocument", WriteState.ToString())));
858
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlProcessingInstructionNotSupported), "name"));
861
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlInvalidDeclaration)));
888
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlNoRootElement)));
909
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(
SRSerialization
.XmlMethodNotSupported, "WriteEntityRef")));
922
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(
SRSerialization
.XmlMethodNotSupported, "WriteNmToken")));
940
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlOnlyWhitespace), "whitespace"));
1004
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
1007
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
1009
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, chars.Length - offset)));
1061
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
1064
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
1066
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, chars.Length - offset)));
1090
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlMissingLowSurrogate), "ch"));
1210
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlNestedArraysNotSupported), "value"));
1431
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
1434
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
1436
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, buffer.Length - offset)));
1590
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlOnlyOneRoot)));
1592
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlOnlyOneRoot)));
1594
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString())));
1605
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlInvalidPrefixState, WriteState.ToString())));
1923
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlReservedPrefix), "prefix"));
1936
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlPrefixBoundToNamespace, prefix, nameSpace.Uri, uri), "prefix"));
1940
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlEmptyNamespaceRequiresNullPrefix), "prefix"));
1942
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlSpecificBindingNamespace, "xmlns", uri)));
1945
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.XmlSpecificBindingNamespace, "xml", uri)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReader.cs (8)
40
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
42
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.OffsetExceedsBufferSize, buffer.Length)));
44
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
46
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, buffer.Length - offset)));
1210
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
1212
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.OffsetExceedsBufferSize, array.Length)));
1214
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
1216
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReaderSession.cs (2)
28
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(string.Format(
SRSerialization
.XmlInvalidID)));
33
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlIDDefined)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (5)
61
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlOnlySingleValue)));
1272
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
1274
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.OffsetExceedsBufferSize, array.Length)));
1276
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
1278
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriterSession.cs (1)
42
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.XmlKeyAlreadyExists)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (1)
493
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(
SRSerialization
.XmlInvalidQualifiedName, qname)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryAsyncCheckWriter.cs (1)
38
throw new InvalidOperationException(
SRSerialization
.XmlAsyncIsRunningException);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (4)
896
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
898
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.OffsetExceedsBufferSize, array.Length)));
900
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
902
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReaderQuotas.cs (11)
73
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.QuotaCopyReadOnly)));
98
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.QuotaIsReadOnly, "MaxStringContentLength")));
100
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.QuotaMustBePositive), "value"));
116
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.QuotaIsReadOnly, "MaxArrayLength")));
118
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.QuotaMustBePositive), "value"));
134
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.QuotaIsReadOnly, "MaxBytesPerRead")));
136
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.QuotaMustBePositive), "value"));
153
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.QuotaIsReadOnly, "MaxDepth")));
155
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.QuotaMustBePositive), "value"));
172
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
SRSerialization
.QuotaIsReadOnly, "MaxNameTableCharCount")));
174
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(
SRSerialization
.QuotaMustBePositive), "value"));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryString.cs (1)
32
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("key", string.Format(
SRSerialization
.ValueMustBeInRange, MinKey, MaxKey)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryWriter.cs (4)
408
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
410
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.OffsetExceedsBufferSize, array.Length)));
412
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
414
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlExceptionHelper.cs (45)
35
s += " " + string.Format(
SRSerialization
.XmlLineInfo, lineInfo.LineNumber, lineInfo.LinePosition);
47
s += " " + string.Format(
SRSerialization
.XmlLineInfo, lineInfo.LineNumber, lineInfo.LinePosition);
63
return string.Format(
SRSerialization
.XmlFoundEndOfFile);
67
return string.Format(
SRSerialization
.XmlFoundElement, GetName(reader.Prefix, reader.LocalName), reader.NamespaceURI);
69
return string.Format(
SRSerialization
.XmlFoundEndElement, GetName(reader.Prefix, reader.LocalName), reader.NamespaceURI);
73
return string.Format(
SRSerialization
.XmlFoundText, reader.Value);
75
return string.Format(
SRSerialization
.XmlFoundComment, reader.Value);
77
return string.Format(
SRSerialization
.XmlFoundCData, reader.Value);
79
return string.Format(
SRSerialization
.XmlFoundNodeType, reader.NodeType);
84
ThrowXmlException(reader,
SRSerialization
.XmlStartElementExpected, GetWhatWasFound(reader));
89
ThrowXmlException(reader,
SRSerialization
.XmlStartElementNameExpected, name, GetWhatWasFound(reader));
94
ThrowXmlException(reader,
SRSerialization
.XmlStartElementLocalNameNsExpected, localName, ns, GetWhatWasFound(reader));
104
ThrowXmlException(reader,
SRSerialization
.XmlFullStartElementExpected, GetWhatWasFound(reader));
109
ThrowXmlException(reader,
SRSerialization
.XmlFullStartElementNameExpected, name, GetWhatWasFound(reader));
114
ThrowXmlException(reader,
SRSerialization
.XmlFullStartElementLocalNameNsExpected, localName, ns, GetWhatWasFound(reader));
124
ThrowXmlException(reader,
SRSerialization
.XmlEndElementExpected, localName, ns, GetWhatWasFound(reader));
129
ThrowXmlException(reader,
SRSerialization
.XmlMaxArrayLengthExceeded, maxArrayLength.ToString(NumberFormatInfo.CurrentInfo));
134
ThrowXmlException(reader,
SRSerialization
.XmlMaxBytesPerReadExceeded, maxBytesPerRead.ToString(NumberFormatInfo.CurrentInfo));
139
ThrowXmlException(reader,
SRSerialization
.XmlMaxNameTableCharCountExceeded, maxNameTableCharCount.ToString(NumberFormatInfo.CurrentInfo));
144
ThrowXmlException(reader,
SRSerialization
.XmlMaxDepthExceeded, maxDepth.ToString());
149
ThrowXmlException(reader,
SRSerialization
.XmlMaxStringContentLengthExceeded, maxStringContentLength.ToString(NumberFormatInfo.CurrentInfo));
154
ThrowXmlException(reader,
SRSerialization
.XmlBase64DataExpected, GetWhatWasFound(reader));
159
ThrowXmlException(reader,
SRSerialization
.XmlUndefinedPrefix, prefix);
164
ThrowXmlException(reader,
SRSerialization
.XmlProcessingInstructionNotSupported);
169
ThrowXmlException(reader,
SRSerialization
.XmlInvalidXmlByte, b.ToString("X2", CultureInfo.InvariantCulture));
174
ThrowXmlException(reader,
SRSerialization
.XmlUnexpectedEndOfFile, ((XmlBaseReader)reader).GetOpenElements());
179
ThrowXmlException(reader,
SRSerialization
.XmlUnexpectedEndElement);
184
ThrowXmlException(reader,
SRSerialization
.XmlTokenExpected, expected, found.ToString());
189
ThrowXmlException(reader,
SRSerialization
.XmlTokenExpected, expected, found);
194
ThrowXmlException(reader,
SRSerialization
.XmlInvalidCharRef);
199
ThrowXmlException(reader,
SRSerialization
.XmlTagMismatch, GetName(expectedPrefix, expectedLocalName), GetName(foundPrefix, foundLocalName));
209
ThrowXmlException(reader,
SRSerialization
.XmlDuplicateAttribute, name, name, ns);
214
ThrowXmlException(reader,
SRSerialization
.XmlDuplicateAttribute, GetName(prefix1, localName), GetName(prefix2, localName), ns);
219
ThrowXmlException(reader,
SRSerialization
.XmlInvalidFormat);
224
ThrowXmlException(reader,
SRSerialization
.XmlInvalidRootData);
229
ThrowXmlException(reader,
SRSerialization
.XmlMultipleRootElements);
234
ThrowXmlException(reader,
SRSerialization
.XmlDeclNotFirst);
239
ThrowXmlException(reader,
SRSerialization
.XmlConversionOverflow, value, type);
244
ThrowXmlException(reader,
SRSerialization
.XmlDictionaryStringIDRange, XmlDictionaryString.MinKey.ToString(NumberFormatInfo.CurrentInfo), XmlDictionaryString.MaxKey.ToString(NumberFormatInfo.CurrentInfo));
249
ThrowXmlException(reader,
SRSerialization
.XmlDictionaryStringIDUndefinedStatic, key.ToString(NumberFormatInfo.CurrentInfo));
254
ThrowXmlException(reader,
SRSerialization
.XmlDictionaryStringIDUndefinedSession, key.ToString(NumberFormatInfo.CurrentInfo));
259
ThrowXmlException(reader,
SRSerialization
.XmlEmptyNamespaceRequiresNullPrefix);
264
return new XmlException(string.Format(
SRSerialization
.XmlInvalidConversionWithoutValue, type), exception);
269
return new XmlException(string.Format(
SRSerialization
.XmlInvalidConversion, value, type), exception);
279
return new XmlException(string.Format(
SRSerialization
.XmlInvalidUTF8Bytes, value), exception);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextReader.cs (10)
567
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
569
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(
SRSerialization
.OffsetExceedsBufferSize, buffer.Length)));
571
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.ValueMustBeNonNegative)));
573
throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(
SRSerialization
.SizeExceedsRemainingBufferSpace, buffer.Length - offset)));
887
XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(
SRSerialization
.XmlSpaceBetweenAttributes)));
920
XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(
SRSerialization
.XmlInvalidFFFE)));
1056
XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(
SRSerialization
.XmlInvalidCommentChars)));
1189
XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(
SRSerialization
.XmlInvalidFFFE)));
1349
XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(
SRSerialization
.XmlCDATAInvalidAtTopLevel)));
1392
XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(
SRSerialization
.XmlCloseCData)));