212 references to Format
System.Private.Xml (212)
System\Xml\Core\XmlEncodedRawTextWriter.cs (2)
1849throw new ArgumentException(SR.Format(SR.Xml_IndentCharsNotWhitespace, propertyName)); 1886error = SR.Format(SR.Xml_InvalidSurrogateHighChar, ((uint)chars[i]).ToString("X", CultureInfo.InvariantCulture));
System\Xml\Core\XmlReader.cs (4)
650throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadContentAsBase64")); 656throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBase64")); 662throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadContentAsBinHex")); 668throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBinHex"));
System\Xml\Core\XmlReaderAsync.cs (4)
127throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadContentAsBase64")); 133throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBase64")); 139throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadContentAsBinHex")); 145throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBinHex"));
System\Xml\Core\XmlReaderSettings.cs (2)
523throw new InvalidOperationException(SR.Format(SR.Xml_IncompatibleConformanceLevel, _conformanceLevel.ToString())); 582throw new InvalidOperationException(SR.Format(SR.Xml_IncompatibleConformanceLevel, _conformanceLevel.ToString()));
System\Xml\Core\XmlTextReaderImpl.cs (1)
1792throw new InvalidOperationException(SR.Format(SR.Xml_InvalidReadValueChunk, _curNode.type));
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
617throw new InvalidOperationException(SR.Format(SR.Xml_InvalidReadValueChunk, _curNode.type));
System\Xml\Core\XmlTextWriter.cs (4)
1068throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns)); 1153throw new ArgumentException(SR.Format(SR.Xml_InvalidNameChars, name)); 1738throw new ArgumentException(SR.Format(SR.Xml_InvalidNameChars, name)); 1760throw new ArgumentException(SR.Format(SR.Xml_InvalidXmlSpace, value));
System\Xml\Core\XmlUtf8RawTextWriter.cs (2)
1714throw new ArgumentException(SR.Format(SR.Xml_IndentCharsNotWhitespace, propertyName)); 1751error = SR.Format(SR.Xml_InvalidSurrogateHighChar, ((uint)chars[i]).ToString("X", CultureInfo.InvariantCulture));
System\Xml\Core\XmlWellFormedWriter.cs (4)
822throw new ArgumentException(SR.Format(SR.Xml_InvalidXmlSpace, value)); 1291throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns)); 1640throw new ArgumentException(SR.Format(SR.Xml_NamespaceDeclXmlXmlns, prefix)); 1724throw new ArgumentException(SR.Format(SR.Xml_NamespaceDeclXmlXmlns, prefix));
System\Xml\Core\XmlWellFormedWriterAsync.cs (2)
729throw new ArgumentException(SR.Format(SR.Xml_InvalidXmlSpace, value)); 1145throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns));
System\Xml\Core\XmlWriter.cs (1)
234throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns));
System\Xml\Core\XmlWriterAsync.cs (1)
220throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns));
System\Xml\Dom\DocumentSchemaValidator.cs (3)
270throw new InvalidOperationException(SR.Format(SR.Xml_InvalidXmlDocument, SR.Xdom_NoRootEle)); 316throw new InvalidOperationException(SR.Format(SR.Xml_UnexpectedNodeType, _currentNode.NodeType)); 753throw new InvalidOperationException(SR.Format(SR.Xml_UnexpectedNodeType, _currentNode!.NodeType));
System\Xml\Dom\XmlDeclaration.cs (2)
27throw new ArgumentException(SR.Format(SR.Xdom_standalone, standalone)); 65throw new ArgumentException(SR.Format(SR.Xdom_standalone, value));
System\Xml\Dom\XmlDocument.cs (4)
245throw new ArgumentException(SR.Format(SR.Xdom_Attr_Reserved_XmlNS, namespaceURI)); 1157throw new ArgumentException(SR.Format(SR.Arg_CannotCreateNode, type)); 1252throw new ArgumentException(SR.Format(SR.Xdom_Invalid_NT_String, nodeTypeString)); 1492throw new ArgumentException(SR.Format(SR.XmlDocument_NodeNotFromDocument, nameof(nodeToValidate)));
System\Xml\Resolvers\XmlPreloadedResolver.cs (1)
237throw new XmlException(SR.Format(SR.Xml_CannotResolveUrl, absoluteUri));
System\Xml\Resolvers\XmlPreloadedResolverAsync.cs (1)
27throw new XmlException(SR.Format(SR.Xml_CannotResolveUrl, absoluteUri));
System\Xml\Schema\DataTypeImplementation.cs (6)
3697throw new XmlSchemaException(SR.Format(SR.Sch_InvalidValue, s), e); 3719throw new XmlSchemaException(SR.Format(SR.Sch_InvalidValue, s), e); 3753throw new XmlSchemaException(SR.Format(SR.Sch_InvalidValue, s), e); 3793throw new XmlSchemaException(SR.Format(SR.Sch_InvalidValue, s), e); 3836throw new XmlSchemaException(SR.Format(SR.Sch_InvalidValue, s), e); 3889throw new XmlSchemaException(SR.Format(SR.Sch_InvalidValue, s), e);
System\Xml\Schema\SchemaSetCompiler.cs (2)
1685_restrictionErrorMsg = SR.Format(SR.Sch_ElementFromAnyRule1, derivedElement.QualifiedName.ToString()); 1690_restrictionErrorMsg = SR.Format(SR.Sch_ElementFromAnyRule2, derivedElement.QualifiedName.ToString());
System\Xml\Schema\XmlSchemaObjectTable.cs (8)
287throw new InvalidOperationException(SR.Format(SR.Sch_EnumNotStarted, string.Empty)); 291throw new InvalidOperationException(SR.Format(SR.Sch_EnumFinished, string.Empty)); 346throw new InvalidOperationException(SR.Format(SR.Sch_EnumNotStarted, string.Empty)); 350throw new InvalidOperationException(SR.Format(SR.Sch_EnumFinished, string.Empty)); 362throw new InvalidOperationException(SR.Format(SR.Sch_EnumNotStarted, string.Empty)); 366throw new InvalidOperationException(SR.Format(SR.Sch_EnumFinished, string.Empty)); 378throw new InvalidOperationException(SR.Format(SR.Sch_EnumNotStarted, string.Empty)); 382throw new InvalidOperationException(SR.Format(SR.Sch_EnumFinished, string.Empty));
System\Xml\Schema\XmlSchemaValidator.cs (7)
887throw new InvalidOperationException(SR.Format(SR.Sch_InvalidEndElementMultiple, s_methodNames[(int)ValidatorState.SkipToEndElement])); 1169throw new InvalidOperationException(SR.Format(SR.Sch_InvalidEndElementMultiple, s_methodNames[(int)ValidatorState.EndElement])); 2613string ContinuationString = SR.Format(SR.Sch_ContinuationString, " "); 2691builder.Append(SR.Format(SR.Sch_ElementName, name.Name)); 2731builder.Append(SR.Format(SR.Sch_ElementName, subBuilder)); 2755builder.Append(SR.Format(SR.Sch_AnyElementNS, subBuilder)); 2776return SR.Format(SR.Sch_ElementName, localName);
System\Xml\Serialization\CodeGenerator.cs (3)
897throw new NotSupportedException(SR.Format(SR.UnknownConstantType, valueType.AssemblyQualifiedName)); 1069throw new InvalidOperationException(SR.Format(SR.ArrayTypeIsNotSupported, arrayElementType.AssemblyQualifiedName)); 1114throw new InvalidOperationException(SR.Format(SR.ArrayTypeIsNotSupported, arrayElementType.AssemblyQualifiedName));
System\Xml\Serialization\CodeIdentifier.cs (1)
173throw new ArgumentException(SR.Format(SR.XmlInvalidIdentifier, ident), nameof(ident));
System\Xml\Serialization\Compilation.cs (6)
176throw new Exception(SR.Format(SR.FailLoadAssemblyUnderPregenMode, serializerName)); 352throw new InvalidOperationException(SR.Format(SR.XmlPregenTypeDynamic, types[i]!.FullName)); 623throw new InvalidOperationException(SR.Format(SR.XmlInvalidEncodingNotEncoded1, encodingStyle)); 650throw new InvalidOperationException(SR.Format(SR.XmlTypeInBadLoadContext, t.FullName)); 668throw new InvalidOperationException(SR.Format(SR.XmlNotSerializable, mapping.Accessor.Name)); 695throw new InvalidOperationException(SR.Format(SR.XmlNotSerializable, mapping.Accessor.Name));
System\Xml\Serialization\Mappings.cs (6)
120throw new ArgumentException(SR.Format(SR.Xml_InvalidNameChars, name), nameof(name)); 257throw new InvalidOperationException(SR.Format(SR.Xml_InvalidNameChars, Name)); 1122throw new InvalidOperationException(SR.Format(SR.XmlCircularDerivation, TypeDesc!.FullName)); 1362throw new InvalidOperationException(SR.Format(SR.XmlMissingSchema, _xsiType.Namespace)); 1371throw new InvalidOperationException(SR.Format(SR.XmlMissingSchema, _xsiType.Namespace)); 1389if (string.IsNullOrEmpty(_schema.Id)) throw new InvalidOperationException(SR.Format(SR.XmlSerializableNameMissing1, _type!.FullName));
System\Xml\Serialization\Models.cs (2)
67if (!typeDesc.IsSpecial) throw new NotSupportedException(SR.Format(SR.XmlUnsupportedTypeKind, type.FullName)); 209typeDesc.Exception ??= new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, typeDesc.FullName));
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
1317_ => throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"unknown FormatterName: {mapping.TypeDesc.FormatterName}")), 1327throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"unknown FormatterName: {mapping.TypeDesc.FormatterName}"));
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (3)
500throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingAnyValue, choiceMapping.TypeDesc!.FullName)); 1336throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Invalid DateTime")); 1600throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"Could not find member named {memberName} of type {declaringType}"));
System\Xml\Serialization\SoapAttributes.cs (1)
46throw new InvalidOperationException(SR.Format(SR.XmlObsoleteIsError, obsoleteAttr.Message));
System\Xml\Serialization\SoapReflectionImporter.cs (9)
139return new InvalidOperationException(SR.Format(SR.XmlReflectionError, context), e); 185throw new InvalidOperationException(SR.Format(SR.XmlInvalidTypeAttributes, model.Type.FullName)); 219throw new NotSupportedException(SR.Format(SR.XmlUnsupportedSoapTypeKind, model.TypeDesc.FullName)); 401throw new NotSupportedException(SR.Format(SR.XmlRpcRefsInValueType, model.TypeDesc.FullName)); 403throw new NotSupportedException(SR.Format(SR.XmlRpcNestedValueType, member.TypeDesc.FullName)); 426throw new NotSupportedException(SR.Format(SR.XmlRpcArrayOfValueTypes, model.TypeDesc.FullName)); 502throw new InvalidOperationException(SR.Format(SR.XmlInvalidSoapArray, mapping.TypeDesc!.FullName)); 541throw new InvalidOperationException(SR.Format(SR.XmlUdeclaredXsdType, dataType)); 583throw new InvalidOperationException(SR.Format(SR.XmlNoSerializableMembers, model.TypeDesc.FullName));
System\Xml\Serialization\Types.cs (13)
381throw new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, FullName)); 393_exception = new InvalidOperationException(SR.Format(SR.XmlConstructorInaccessible, FullName)); 765throw new InvalidOperationException(SR.Format(SR.XmlUnsupportedOpenGenericType, type)); 829exception = new InvalidOperationException(SR.Format(SR.XmlTypeInaccessible, type.FullName)); 834exception = new InvalidOperationException(SR.Format(SR.XmlTypeStatic, type.FullName)); 852exception ??= new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, type.FullName)); 870exception ??= new NotSupportedException(SR.Format(SR.XmlUnsupportedRank, type.FullName)); 889exception ??= new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, type.FullName)); 944exception = new NotSupportedException(SR.Format(SR.XmlUnsupportedInterface, type.FullName)); 956exception ??= new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, type.FullName)); 1400throw new NotSupportedException(SR.Format(SR.XmlUnsupportedIDictionary, type.FullName)); 1434throw new InvalidOperationException(SR.Format(SR.XmlNoDefaultAccessors, type.FullName)); 1469throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayTypeSyntax, type));
System\Xml\Serialization\XmlAttributes.cs (1)
97throw new InvalidOperationException(SR.Format(SR.XmlObsoleteIsError, obsoleteAttr.Message));
System\Xml\Serialization\Xmlcustomformatter.cs (2)
75throw new XmlException(SR.Format(SR.XmlUnsupportedDefaultType, type.FullName)); 276throw new XmlException(SR.Format(SR.XmlUnsupportedDefaultValue, formatter));
System\Xml\Serialization\XmlReflectionImporter.cs (35)
130throw new InvalidOperationException(SR.Format(SR.XmlAnonymousInclude, type.FullName)); 376return new InvalidOperationException(SR.Format(SR.XmlReflectionError, context), e); 381return new InvalidOperationException(SR.Format(SR.XmlTypeReflectionError, context), e); 386return new InvalidOperationException(SR.Format(model.IsProperty ? SR.XmlPropertyReflectionError : SR.XmlFieldReflectionError, model.Name), e); 423throw new InvalidOperationException(SR.Format(SR.XmlInvalidTypeAttributes, model.Type.FullName)); 496throw new ArgumentException(SR.Format(SR.XmlGetSchemaMethodName, provider.MethodName), nameof(provider.MethodName)); 594throw new InvalidOperationException(SR.Format(SR.XmlMissingSchema, baseQname.Namespace)); 625return new InvalidOperationException(SR.Format(SR.XmlInvalidAttributeUse, type.FullName)); 805throw new NotSupportedException(SR.Format(SR.XmlUnsupportedInheritance, model.Type.BaseType!.FullName)); 882throw new InvalidOperationException(SR.Format(SR.XmlIllegalMultipleText, model.Type.FullName)); 889throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.Type.FullName)); 936throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.Type.FullName)); 1178throw new InvalidOperationException(SR.Format(SR.XmlUdeclaredXsdType, dataType)); 1213throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttributeFlagsArray, model.TypeDesc.FullName)); 1228throw new InvalidOperationException(SR.Format(SR.XmlNoSerializableMembers, model.TypeDesc.FullName)); 1278throw new InvalidOperationException(SR.Format(SR.XmlInvalidAttributeType, "XmlAttribute")); 1323throw new InvalidOperationException(SR.Format(SR.XmlSequenceMembers, "Order")); 1453throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierTypeEnum, identifierName)); 1492throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierAmbiguous, choice.MemberName)); 1639throw new InvalidOperationException(SR.Format(SR.XmlIllegalArrayTextAttribute, accessorName)); 1694throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order")); 1706throw new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, arrayElementType.FullName)); 1744throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order")); 1792if (a.XmlAnyElements.Count > 0) throw new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, accessor.TypeDesc.FullName)); 1797if (a.XmlAttribute.Type != null) throw new InvalidOperationException(SR.Format(SR.XmlIllegalType, "XmlAttribute")); 1823throw new InvalidOperationException(SR.Format(SR.XmlIllegalType, "XmlText")); 1840throw new InvalidOperationException(SR.Format(SR.XmlIllegalType, "XmlElement")); 1867throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order")); 1935throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order")); 1947throw new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, accessorType.FullName)); 1984throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order")); 1998throw new InvalidOperationException(SR.Format(SR.XmlRpcLitArrayElement, accessor.Elements[0].Name)); 2001throw new InvalidOperationException(SR.Format(SR.XmlRpcLitXmlns, accessor.Name)); 2047throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingAnyValue, accessor.ChoiceIdentifier.Mapping!.TypeDesc!.FullName)); 2283if (isNullable && !typeDesc.IsNullable) throw new InvalidOperationException(SR.Format(SR.XmlInvalidIsNullable, typeDesc.FullName));
System\Xml\Serialization\XmlSchemaExporter.cs (12)
79throw new InvalidOperationException(SR.Format(SR.XmlBareAttributeMember, member.Attribute.Name)); 81throw new InvalidOperationException(SR.Format(SR.XmlBareTextMember, member.Text.Name)); 86throw new InvalidOperationException(SR.Format(SR.XmlIllegalArrayElement, member.Elements[0].Name)); 287throw new InvalidOperationException(SR.Format(SR.XmlIllegalForm, e.Name)); 293throw new InvalidOperationException(SR.Format(SR.XmlIllegalForm, a.Name)); 509throw new InvalidOperationException(SR.Format(SR.XmlDuplicateNamespace, anyNs)); 558throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"Unsupported anonymous mapping type: {mapping}")); 677throw new InvalidOperationException(SR.Format(SR.XmlInvalidContent, type.ContentModel.Content!.GetType().Name)); 971if (!mapping.IncludeInSchema) throw new InvalidOperationException(SR.Format(SR.XmlCannotIncludeInSchema, mapping.TypeDesc.Name)); 1046throw new InvalidOperationException(SR.Format(SR.XmlIllegalMultipleText, name)); 1069throw new InvalidOperationException(SR.Format(SR.XmlInvalidContent, type.ContentModel.Content!.GetType().Name)); 1138if (!mapping.IncludeInSchema) throw new InvalidOperationException(SR.Format(SR.XmlCannotIncludeInSchema, mapping.TypeDesc!.Name));
System\Xml\Serialization\XmlSchemaImporter.cs (6)
1859throw new InvalidOperationException(SR.Format(SR.XmlMissingGroup, name.Name)); 1868throw new InvalidOperationException(SR.Format(SR.XmlMissingAttributeGroup, name.Name)); 1936throw new InvalidOperationException(SR.Format(SR.XmlInvalidEncoding, name)); 1940throw new InvalidOperationException(SR.Format(SR.XmlMissingDataType, name)); 1966throw new InvalidOperationException(SR.Format(SR.XmlMissingElement, name)); 1974throw new InvalidOperationException(SR.Format(SR.XmlMissingAttribute, name.Name));
System\Xml\Serialization\XmlSchemas.cs (1)
47throw new InvalidOperationException(SR.Format(SR.XmlSchemaDuplicateNamespace, ns));
System\Xml\Serialization\XmlSerializationReader.cs (18)
968if (arrayInfo.dimensions != 1) throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayDimentions, CurrentTag())); 987throw new ArgumentNullException(nameof(value), SR.Format(SR.XmlMissingArrayType, CurrentTag())); 992throw new ArgumentException(SR.Format(SR.XmlEmptyArrayType, CurrentTag()), nameof(value)); 1013throw new ArgumentException(SR.Format(SR.XmlInvalidArrayDimentions, CurrentTag()), nameof(value)); 1026throw new ArgumentException(SR.Format(SR.XmlInvalidArrayLength, new string(lengthStringSpan)), nameof(value)); 1042throw new ArgumentException(SR.Format(SR.XmlInvalidArrayDimentions, CurrentTag()), nameof(value)); 1094throw new ArgumentException(SR.Format(SR.XmlInvalidArrayLength, dimensions[i]), "value"); 1195throw new InvalidOperationException(SR.Format(SR.XmlUndefinedAlias, prefix)); 1325return new InvalidOperationException(SR.Format(SR.XmlReadOnlyCollection, name)); 1335return new InvalidOperationException(SR.Format(SR.XmlConstructorInaccessible, typeName)); 1340return new InvalidOperationException(SR.Format(SR.XmlConstructorHasSecurityAttributes, typeName)); 1345return new InvalidOperationException(SR.Format(SR.XmlUnknownNode, CurrentTag())); 1361return new InvalidCastException(SR.Format(SR.XmlInvalidNullCast, type.FullName)); 1462if (!href.StartsWith('#')) throw new InvalidOperationException(SR.Format(SR.XmlMissingHref, href)); 1513throw new InvalidOperationException(SR.Format(SR.XmlInvalidHref, id)); 1615if (arrayInfo.dimensions != 1) throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayDimentions, CurrentTag())); 1701throw new NotSupportedException(SR.Format(SR.XmlRpcArrayOfValueTypes, elementType.FullName)); 2890if (enumMethodName == null) throw new InvalidOperationException(SR.Format(SR.XmlMissingMethodEnum, mapping.TypeDesc!.Name));
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
761if (enumMethodName == null) throw new InvalidOperationException(SR.Format(SR.XmlMissingMethodEnum, mapping.TypeDesc!.Name));
System\Xml\Serialization\XmlSerializationWriter.cs (9)
547if (_objectsInUse.ContainsKey(o)) throw new InvalidOperationException(SR.Format(SR.XmlCircularReference, o.GetType().FullName)); 593throw new InvalidOperationException(SR.Format(SR.XmlInvalidXmlns, alias)); 867if (typeof(IXmlSerializable).IsAssignableFrom(type)) return new InvalidOperationException(SR.Format(SR.XmlInvalidSerializable, type.FullName)); 869if (!typeDesc.IsStructLike) return new InvalidOperationException(SR.Format(SR.XmlInvalidUseOfType, type.FullName)); 870return new InvalidOperationException(SR.Format(SR.XmlUnxpectedType, type.FullName)); 907return new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, type.FullName)); 1844throw new InvalidOperationException(SR.Format(SR.XmlSerializerUnsupportedType, memberInfos[0])); 4462throw new InvalidOperationException(SR.Format(SR.XmlUnsupportedDefaultType, type.FullName)); 4571throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingAnyValue, choiceMapping.TypeDesc!.FullName));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
2320throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingAnyValue, choiceMapping.TypeDesc!.FullName));
System\Xml\Serialization\XmlSerializer.cs (7)
251throw new FileLoadException(SR.Format(SR.FailLoadAssemblyUnderPregenMode, serializerName)); 393throw new InvalidOperationException(SR.Format(SR.XmlInvalidEncodingNotEncoded1, encodingStyle)); 495throw new InvalidOperationException(SR.Format(SR.XmlInvalidEncodingNotEncoded1, encodingStyle)); 608throw new FileLoadException(SR.Format(SR.FailLoadAssemblyUnderPregenMode, serializerName)); 688throw new InvalidOperationException(SR.Format(SR.XmlPregenTypeDynamic, type.FullName)); 953throw new InvalidOperationException(SR.Format(SR.XmlUnxpectedType, _primitiveType!.FullName)); 1043throw new InvalidOperationException(SR.Format(SR.XmlUnxpectedType, _primitiveType!.FullName));
System\Xml\ValidateNames.cs (1)
374throw new XmlException(SR.Format(SR.Xml_EmptyName, string.Empty));
System\Xml\XmlEncoding.cs (1)
32throw new ArgumentException(SR.Format(SR.Enc_InvalidByteInEncoding, -1), (string?)null);
System\Xml\XmlResolver.ThrowingResolver.cs (2)
42throw new XmlException(SR.Format(SR.Xml_NullResolver, absoluteUri)); 47throw new XmlException(SR.Format(SR.Xml_NullResolver, absoluteUri));
System\Xml\XPath\Internal\XPathArrayIterator.cs (1)
58throw new InvalidOperationException(SR.Format(SR.Sch_EnumNotStarted, string.Empty));
System\Xml\XPath\XPathNodeIterator.cs (2)
64throw new InvalidOperationException(SR.Format(SR.Sch_EnumFinished, string.Empty)); 71throw new InvalidOperationException(SR.Format(SR.Sch_EnumNotStarted, string.Empty));
System\Xml\Xsl\ListBase.cs (2)
245throw new InvalidOperationException(SR.Format(SR.Sch_EnumNotStarted, string.Empty)); 248throw new InvalidOperationException(SR.Format(SR.Sch_EnumFinished, string.Empty));
System\Xml\Xsl\QIL\QilValidationVisitor.cs (1)
175message = SR.Format(SR.Qil_Validation, message);
System\Xml\Xslt\XslCompiledTransform.cs (1)
219throw new ArgumentException(SR.Format(SR.Xslt_NotCompiledStylesheet, compiledStylesheet.FullName), nameof(compiledStylesheet));