System\Xml\BinaryXml\XmlBinaryReader.cs (7)
1109throw new InvalidCastException(SR.Format(SR.XmlBinary_CastNotSupported, _token, "Boolean"));
1199throw new InvalidCastException(SR.Format(SR.XmlBinary_CastNotSupported, _token, "DateTime"));
1294throw new InvalidCastException(SR.Format(SR.XmlBinary_CastNotSupported, _token, "Double"));
1389throw new InvalidCastException(SR.Format(SR.XmlBinary_CastNotSupported, _token, "Float"));
1484throw new InvalidCastException(SR.Format(SR.XmlBinary_CastNotSupported, _token, "Decimal"));
1579throw new InvalidCastException(SR.Format(SR.XmlBinary_CastNotSupported, _token, "Int32"));
1674throw new InvalidCastException(SR.Format(SR.XmlBinary_CastNotSupported, _token, "Int64"));
System\Xml\Schema\XmlValueConverter.cs (7)
478return new InvalidCastException(SR.Format(SR.XmlConvert_TypeBadMapping, XmlTypeName, sourceType.Name));
639throw new InvalidCastException(SR.Format(SR.XmlConvert_TypeNoNamespace, value, prefix));
644throw new InvalidCastException(SR.Format(SR.XmlConvert_TypeNoNamespace, value, prefix));
770throw new InvalidCastException(SR.Format(SR.XmlConvert_TypeNoPrefix, qname, qname.Namespace));
2493throw new InvalidCastException(SR.Format(SR.XmlConvert_TypeToString, XmlTypeName, sourceType.Name));
2496throw new InvalidCastException(SR.Format(SR.XmlConvert_TypeFromString, XmlTypeName, destinationType.Name));
3128return new InvalidCastException(SR.Format(SR.XmlConvert_TypeListBadMapping, XmlTypeName, sourceType.Name));
System\Xml\Serialization\XmlReflectionImporter.cs (23)
286throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, model.TypeDesc.BaseTypeDesc!.FullName, "XmlRoot"));
346throw new InvalidOperationException(SR.Format(SR.XmlMethodTypeNameConflict, accessor.Name, accessor.Namespace));
407throw new InvalidOperationException(SR.Format(SR.XmlInvalidDataTypeUsage, dataType, "XmlElementAttribute.DataType"));
464throw new InvalidOperationException(SR.Format(SR.XmlSerializableAttributes, model.TypeDesc.FullName, nameof(XmlSchemaProviderAttribute)));
630return new InvalidOperationException(SR.Format(SR.XmlIllegalTypeContext, typeDesc.FullName, GetContextName(context)));
925throw new InvalidOperationException(SR.Format(SR.XmlSequenceInconsistent, "Order", member.Name));
1466throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1483throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1497throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1590throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName));
1665throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
1838throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
1881throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc));
1906throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
2067throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNamespace, "Namespace", xmlElement.Namespace));
2071throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNullable, "IsNullable", "true"));
2076throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNamespace, "Namespace", a.XmlArray.Namespace));
2093throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMissing, nameof(XmlChoiceIdentifierAttribute), accessorName));
2104throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMissing, nameof(XmlChoiceIdentifierAttribute), accessorName));
2142throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdDuplicate, choiceMapping.TypeName, choiceId));
2163throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultValue, strValue, a.XmlDefaultValue.GetType().FullName));
2196throw new InvalidOperationException(SR.Format(SR.XmlDuplicateElementName, existing.Name, existing.Namespace));
2204throw new InvalidOperationException(SR.Format(SR.XmlDuplicateAttributeName, existing.Name, existing.Namespace));
System\Xml\Serialization\XmlSchemaImporter.cs (5)
285throw new InvalidOperationException(SR.Format(SR.XmlElementHasNoName, parentType.Name, parentType.Namespace));
449throw new NotSupportedException(SR.Format(SR.XmlUnsupportedRedefine, type.Name, typeNs));
544throw new InvalidOperationException(SR.Format(SR.XmlTypeUsedTwice, type.QualifiedName.Name, type.QualifiedName.Namespace));
993throw new InvalidOperationException(SR.Format(SR.XmlDuplicateElementInScope, element.Name, element.Namespace));
997throw new InvalidOperationException(SR.Format(SR.XmlDuplicateElementInScope1, element.Name, element.Namespace));
System\Xml\XmlConvert.cs (25)
722throw new ArgumentException(SR.Format(SR.Sch_InvalidDateTimeOption, dateTimeOption, nameof(dateTimeOption)));
756throw new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Boolean"));
774return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Boolean"));
794return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Char"));
809return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Decimal"));
824return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Integer"));
840return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "SByte"));
855return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Int16"));
870return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Int32"));
885return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Int64"));
900return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Byte"));
916return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "UInt16"));
932return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "UInt32"));
948return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "UInt64"));
990return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Single"));
1037return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Double"));
1121throw new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "TimeSpan"));
1233throw new ArgumentException(SR.Format(SR.Sch_InvalidDateTimeOption, dateTimeOption, nameof(dateTimeOption)));
1278exception = new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Guid"));
1282exception = new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Guid"));
1314throw new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Uri"));
1321throw new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Uri"));
1336return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Uri"));
1341return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Uri"));
1784throw new ArgumentException(SR.Format(SR.Sch_InvalidDateTimeOption, dateTimeOption, nameof(dateTimeOption)));