36 references to Format
System.Private.DataContractSerialization (36)
System\Runtime\Serialization\ClassDataContract.cs (7)
782
SR.
Format
(SR.ValueTypeCannotHaveIsReference,
867
SR.
Format
(SR.IsRequiredDataMemberOnIsReferenceDataContractType,
937
SR.
Format
(SR.NonOptionalFieldMemberOnIsReferenceSerializableType,
1106
ThrowInvalidDataContractException(SR.
Format
(SR.DuplicateExtensionDataSetMethod, method, _extensionDataSetMethod, DataContract.GetClrTypeFullName(method.DeclaringType)));
1110
DataContract.ThrowInvalidDataContractException(SR.
Format
(SR.ExtensionDataSetParameterInvalid, DataContract.GetClrTypeFullName(method.DeclaringType), method, Globals.TypeOfExtensionDataObject), method.DeclaringType);
1127
DataContract.ThrowInvalidDataContractException(SR.
Format
(SR.CallbacksCannotBeVirtualMethods, method, DataContract.GetClrTypeFullName(method.DeclaringType), attributeType), method.DeclaringType);
1133
DataContract.ThrowInvalidDataContractException(SR.
Format
(SR.CallbackParameterInvalid, DataContract.GetClrTypeFullName(method.DeclaringType), method, Globals.TypeOfStreamingContext), method.DeclaringType);
System\Runtime\Serialization\CodeGenerator.cs (2)
418
throw XmlObjectSerializer.CreateSerializationException(SR.
Format
(SR.ParameterCountMismatch, methodInfo.Name, methodInfo.GetParameters().Length, expectedCount));
599
throw XmlObjectSerializer.CreateSerializationException(SR.
Format
(SR.CannotLoadMemberType, "Unknown", memberInfo.DeclaringType, memberInfo.Name));
System\Runtime\Serialization\DataContract.cs (2)
1730
throw new InvalidDataContractException(SR.
Format
(SR.DataContractNamespaceAlreadySet, dataContractNs, nsAttribute.ContractNamespace, clrNs));
1930
throw new InvalidDataContractException(SR.
Format
(SR.GenericParameterNotValid, format.Substring(start, i - start), genericNameProvider.GetGenericTypeName(), genericNameProvider.GetParameterCount() - 1));
System\Runtime\Serialization\DataContractSet.cs (2)
274
throw new InvalidDataContractException(SR.
Format
(SR.SurrogatesWithGetOnlyCollectionsNotSupported,
609
throw new InvalidOperationException(SR.
Format
(
System\Runtime\Serialization\EnumDataContract.cs (1)
149
SR.
Format
(SR.EnumTypeCannotHaveIsReference,
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (1)
153
throw new FormatException(SR.
Format
(SR.JsonInvalidDateTimeString, originalDateTimeValue, JsonGlobals.DateTimeStartGuardWriter, JsonGlobals.DateTimeEndGuardWriter));
System\Runtime\Serialization\Json\XmlJsonWriter.cs (5)
581
throw new XmlException(SR.
Format
(SR.JsonMustSpecifyDataType, JsonGlobals.typeString, JsonGlobals.objectString, JsonGlobals.serverTypeString));
588
throw new XmlException(SR.
Format
(SR.JsonMustSpecifyDataType, JsonGlobals.itemString, string.Empty, JsonGlobals.itemString));
714
throw new ArgumentException(SR.
Format
(SR.XmlPrefixBoundToNamespace, "xmlns", xmlnsNamespace, ns), nameof(ns));
1191
throw new XmlException(SR.
Format
(SR.JsonMustSpecifyDataType, JsonGlobals.typeString, JsonGlobals.objectString, JsonGlobals.serverTypeString));
1198
throw new XmlException(SR.
Format
(SR.JsonMustSpecifyDataType, JsonGlobals.itemString, string.Empty, JsonGlobals.itemString));
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
275
throw XmlObjectSerializer.CreateSerializationException(SR.
Format
(SR.DcTypeNotFoundOnSerialize, DataContract.GetClrTypeFullName(dataContract.UnderlyingType), dataContract.XmlName.Name, dataContract.XmlName.Namespace));
System\Runtime\Serialization\SchemaImporter.cs (7)
991
throw new InvalidDataContractException(SR.
Format
(SR.InvalidEmitDefaultAnnotation, memberName, typeName.Name, typeName.Namespace));
1302
throw new InvalidDataContractException(SR.
Format
(SR.GenericAnnotationHasInvalidElement, argumentElement.LocalName, argumentElement.NamespaceURI, type.Name));
1311
throw new InvalidDataContractException(SR.
Format
(SR.GenericAnnotationForNestedLevelMustBeIncreasing, argumentElement.LocalName, argumentElement.NamespaceURI, type.Name));
1447
ThrowTypeCannotBeImportedException(SR.
Format
(SR.TypeCannotBeImported, name, ns, message));
1453
ThrowTypeCannotBeImportedException(SR.
Format
(SR.ArrayTypeCannotBeImported, name, ns, message));
1459
ThrowTypeCannotBeImportedException(SR.
Format
(SR.EnumTypeCannotBeImported, name, ns, message));
1465
ThrowTypeCannotBeImportedException(SR.
Format
(SR.ISerializableTypeCannotBeImported, name, ns, message));
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (2)
367
throw XmlObjectSerializer.CreateSerializationException(SR.
Format
(SR.FactoryObjectContainsSelfReference, oldType, newType, id));
485
throw XmlObjectSerializer.CreateSerializationException(SR.
Format
(SR.ArrayExceededSizeAttribute, arraySize, itemName.Value, itemNamespace.Value));
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
247
throw XmlObjectSerializer.CreateSerializationException(SR.
Format
(SR.DcTypeNotFoundOnSerialize, DataContract.GetClrTypeFullName(dataContract.UnderlyingType), dataContract.XmlName.Name, dataContract.XmlName.Namespace));
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
799
throw XmlObjectSerializer.CreateSerializationException(SR.
Format
(SR.ArrayExceededSizeAttribute, expectedLength, itemName.Value, itemNamespace.Value));
System\Xml\XmlBaseWriter.cs (3)
231
throw new ArgumentException(SR.
Format
(SR.XmlPrefixBoundToNamespace, "xml", xmlNamespace, ns), nameof(ns));
239
throw new ArgumentException(SR.
Format
(SR.XmlPrefixBoundToNamespace, "xmlns", xmlnsNamespace, ns), nameof(ns));
2163
throw new ArgumentException(SR.
Format
(SR.XmlPrefixBoundToNamespace, prefix, nameSpace.Uri, uri), nameof(prefix));
System\Xml\XmlExceptionHelper.cs (1)
33
string s = SR.
Format
(res, arg1, arg2, arg3);