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)
273throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, model.TypeDesc.BaseTypeDesc!.FullName, "XmlRoot"));
333throw new InvalidOperationException(SR.Format(SR.XmlMethodTypeNameConflict, accessor.Name, accessor.Namespace));
392throw new InvalidOperationException(SR.Format(SR.XmlInvalidDataTypeUsage, dataType, "XmlElementAttribute.DataType"));
449throw new InvalidOperationException(SR.Format(SR.XmlSerializableAttributes, model.TypeDesc.FullName, nameof(XmlSchemaProviderAttribute)));
614return new InvalidOperationException(SR.Format(SR.XmlIllegalTypeContext, typeDesc.FullName, GetContextName(context)));
903throw new InvalidOperationException(SR.Format(SR.XmlSequenceInconsistent, "Order", member.Name));
1440throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1457throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1471throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1562throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName));
1637throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
1810throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
1853throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc));
1878throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
2039throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNamespace, "Namespace", xmlElement.Namespace));
2043throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNullable, "IsNullable", "true"));
2048throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNamespace, "Namespace", a.XmlArray.Namespace));
2065throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMissing, nameof(XmlChoiceIdentifierAttribute), accessorName));
2076throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMissing, nameof(XmlChoiceIdentifierAttribute), accessorName));
2114throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdDuplicate, choiceMapping.TypeName, choiceId));
2135throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultValue, strValue, a.XmlDefaultValue.GetType().FullName));
2168throw new InvalidOperationException(SR.Format(SR.XmlDuplicateElementName, existing.Name, existing.Namespace));
2176throw new InvalidOperationException(SR.Format(SR.XmlDuplicateAttributeName, existing.Name, existing.Namespace));
System\Xml\Serialization\XmlSchemaImporter.cs (5)
270throw new InvalidOperationException(SR.Format(SR.XmlElementHasNoName, parentType.Name, parentType.Namespace));
430throw new NotSupportedException(SR.Format(SR.XmlUnsupportedRedefine, type.Name, typeNs));
523throw new InvalidOperationException(SR.Format(SR.XmlTypeUsedTwice, type.QualifiedName.Name, type.QualifiedName.Namespace));
966throw new InvalidOperationException(SR.Format(SR.XmlDuplicateElementInScope, element.Name, element.Namespace));
970throw 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)));