SR_missing.cs 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. namespace System.Runtime.Serialization
  2. {
  3. static partial class SR
  4. {
  5. #region MissingInStrings.txt
  6. //
  7. // This was retrieved as follows:
  8. //
  9. // 1. mcs ReferenceSources/SR.cs -t:library -out:existing.dll
  10. // 2. mcs {https://raw.githubusercontent.com/mono/mono/wip-serialization-halfway/mcs/class/System.Runtime.Serialization/ReferenceSource/SR.cs} -t:library -out:full.dll
  11. // 3. csharp -e "System.IO.File.WriteAllLines ("existing.txt", System.Reflection.Assembly.ReflectionOnlyLoadFrom ("existing.dll").GetTypes ().SelectMany (t => t.GetFields ()).Select (f => f.Name).ToArray ())"
  12. // 4. csharp -e "System.IO.File.WriteAllLines ("full.txt", System.Reflection.Assembly.ReflectionOnlyLoadFrom ("full.dll").GetTypes ().SelectMany (t => t.GetFields ()).Select (f => f.Name).ToArray ())"
  13. // 5. csharp
  14. // var existing = System.IO.File.ReadAllLines ("existing.txt");
  15. // var full = System.IO.File.ReadAllLines ("full.txt");
  16. // var missing = full.Where (f => !existing.Contains (f));
  17. // System.IO.File.WriteAllLines ("missing.cs", missing.Select (m => "public const string " + m + " = @\"" + m + "\";").ToArray ())
  18. // 6. copy missing.cs contents here.
  19. //
  20. public const string AbstractElementNotSupported = @"Abstract element '{0}' is not supported.";
  21. public const string AbstractTypeNotSupported = @"Abstract type is not supported";
  22. public const string AmbiguousReferencedCollectionTypes1 = @"Ambiguous collection types were referenced: {0}";
  23. public const string AmbiguousReferencedCollectionTypes3 = @"In '{0}' element in '{1}' namespace, ambiguous collection types were referenced: {2}";
  24. public const string AmbiguousReferencedTypes1 = @"Ambiguous types were referenced: {0}";
  25. public const string AmbiguousReferencedTypes3 = @"In '{0}' element in '{1}' namespace, ambiguous types were referenced: {2}";
  26. public const string AnnotationAttributeNotFound = @"Annotation attribute was not found: default value annotation is '{0}', type is '{1}' in '{2}' namespace, emit default value is {3}.";
  27. public const string AnonymousTypeNotSupported = @"Anonymous type is not supported. Type is '{0}' in '{1}' namespace.";
  28. public const string AnyAttributeNotSupported = @"XML Schema 'any' attribute is not supported";
  29. public const string ArrayItemFormMustBe = @"For array item, element 'form' must be {0}.";
  30. public const string ArraySizeAttributeIncorrect = @"Array size attribute is incorrect; must be between {0} and {1}.";
  31. public const string ArrayTypeCannotBeImported = @"Array type cannot be imported for '{0}' in '{1}' namespace: {2}.";
  32. public const string AssemblyNotFound = @"Assembly '{0}' was not found.";
  33. public const string AttributeNotFound = @"Attribute was not found for CLR type '{1}' in namespace '{0}'. XML reader node is on {2}, '{4}' node in '{3}' namespace.";
  34. public const string BaseTypeNotISerializable = @"Base type '{0}' in '{1}' namespace is not ISerializable.";
  35. public const string CannotComputeUniqueName = @"Cannot compute unique name for '{0}'.";
  36. public const string CannotDeriveFromSealedReferenceType = @"Cannod drive from sealed reference type '{2}', for '{0}' element in '{1}' namespace.";
  37. public const string CannotDeserializeForwardedType = @"Cannot deserialize forwarded type '{0}'.";
  38. public const string CannotExportNullAssembly = @"Cannot export null assembly.";
  39. public const string CannotExportNullKnownType = @"Cannot export null known type.";
  40. public const string CannotExportNullType = @"Cannot export null type.";
  41. public const string CannotHaveDuplicateAttributeNames = @"Cannot have duplicate attribute names '{0}'.";
  42. public const string CannotHaveDuplicateElementNames = @"Cannot have duplicate element names '{0}'.";
  43. public const string CannotImportInvalidSchemas = @"Cannot import invalid schemas.";
  44. public const string CannotImportNullDataContractName = @"Cannot import data contract with null name.";
  45. public const string CannotImportNullSchema = @"Cannot import from schema list that contains null.";
  46. public const string CannotSetMembersForReferencedType = @"Cannot set members for already referenced type. Base type is '{0}'.";
  47. public const string CannotSetNamespaceForReferencedType = @"Cannot set namespace for already referenced type. Base type is '{0}'.";
  48. public const string CannotUseGenericTypeAsBase = @"For '{0}' in '{1}' namespace, generic type cannot be referenced as the base type.";
  49. public const string ChangingFullTypeNameNotSupported = @"Changing full type name is not supported. Serialization type name: '{0}', data contract type name: '{1}'.";
  50. public const string CircularTypeReference = @"Circular type reference was found for '{0}' in '{1}' namespace.";
  51. public const string ClassDataContractReturnedForGetOnlyCollection = @"For '{0}' type, class data contract was returned for get-only collection.";
  52. public const string CLRNamespaceMappedMultipleTimes = @"CLR namespace is mapped multiple times. Current data contract namespace is '{0}', found '{1}' for CLR namespace '{2}'.";
  53. public const string ClrTypeNotFound = @"CLR type '{1}' in assembly '{0}' is not found.";
  54. public const string CollectionAssignedToIncompatibleInterface = @"Collection of type '{0}' is assigned to an incompatible interface '{1}'";
  55. public const string ComplexTypeRestrictionNotSupported = @"XML schema complexType restriction is not supported.";
  56. public const string ConfigDataContractSerializerSectionLoadError = @"Failed to load configuration section for dataContractSerializer.";
  57. public const string ConfigIndexOutOfRange = @"For type '{0}', configuration index is out of range.";
  58. public const string ConfigMustOnlyAddParamsWithType = @"Configuration parameter element must only add params with type."; // huh? the code doesn't make a lot of sense to me...
  59. public const string ConfigMustOnlySetTypeOrIndex = @"Configuration parameter element can set only one of either type or index.";
  60. public const string ConfigMustSetTypeOrIndex = @"Configuration parameter element must set either type or index.";
  61. public const string CouldNotReadSerializationSchema = @"Could not read serialization schema for '{0}' namespace.";
  62. public const string DefaultOnElementNotSupported = @"On element '{0}', default value is not supported.";
  63. public const string DerivedTypeNotISerializable = @"On type '{0}' in '{1}' namespace, derived type is not ISerializable.";
  64. public const string DupContractInDataContractSet = @"Duplicate contract in data contract set was found, for '{0}' in '{1}' namespace.";
  65. public const string DuplicateExtensionDataSetMethod = @"Duplicate extension data set method was found, for method '{0}', existing method is '{1}', on data contract type '{2}'.";
  66. public const string DupTypeContractInDataContractSet = @"Duplicate type contract in data contract set. Type name '{0}', for data contract '{1}' in '{2}' namespace.";
  67. public const string ElementMaxOccursMustBe = @"On element '{0}', schema element maxOccurs must be 1.";
  68. public const string ElementMinOccursMustBe = @"On element '{0}', schema element minOccurs must be less or equal to 1.";
  69. public const string ElementRefOnLocalElementNotSupported = @"For local element, ref is not supported. The referenced name is '{0}' in '{1}' namespace.";
  70. public const string EnumEnumerationFacetsMustHaveValue = @"Schema enumeration facet must have values.";
  71. public const string EnumListInAnonymousTypeNotSupported = @"Enum list in anonymous type is not supported.";
  72. public const string EnumListMustContainAnonymousType = @"Enum list must contain an anonymous type.";
  73. public const string EnumOnlyEnumerationFacetsSupported = @"For schema facets, only enumeration is supported.";
  74. public const string EnumRestrictionInvalid = @"For simpleType restriction, only enum is supported and this type could not be convert to enum.";
  75. public const string EnumTypeCannotBeImported = @"For '{0}' in '{1}' namespace, enum type cannot be imported: {2}";
  76. public const string EnumTypeNotSupportedByDataContractJsonSerializer = @"Enum type is not supported by DataContractJsonSerializer. The underlying type is '{0}'.";
  77. public const string EnumUnionInAnonymousTypeNotSupported = @"Enum union in anonymous type is not supported.";
  78. public const string ExtensionDataSetMustReturnVoid = @"For type '{0}' method '{1}', extension data set method must return void.";
  79. public const string ExtensionDataSetParameterInvalid = @"For type '{0}' method '{1}', extension data set method has invalid type of parameter '{2}'.";
  80. public const string FactoryObjectContainsSelfReference = @"Factory object contains a reference to self. Old object is '{0}', new object is '{1}'.";
  81. public const string FactoryTypeNotISerializable = @"For data contract '{1}', factory type '{0}' is not ISerializable.";
  82. public const string FixedOnElementNotSupported = @"On schema element '{0}', fixed value is not supported.";
  83. public const string FlushBufferAlreadyInUse = @"Flush buffer is already in use.";
  84. public const string FormMustBeQualified = @"On schema element '{0}', form must be qualified.";
  85. public const string GenericAnnotationAttributeNotFound = @"On type '{0}' Generic annotation attribute '{1}' was not found.";
  86. public const string GenericAnnotationForNestedLevelMustBeIncreasing = @"On type '{2}', generic annotation for nested level must be increasing. Argument element is '{0}' in '{1}' namespace.";
  87. public const string GenericAnnotationHasInvalidAttributeValue = @"On type '{2}', generic annotation has invalid attribute value '{3}'. Argument element is '{0}' in '{1}' namespace. Nested level attribute attribute name is '{4}'. Type is '{5}'."; // dunno if this makes sense...
  88. public const string GenericAnnotationHasInvalidElement = @"On type '{2}', generic annotation has invalid element. Argument element is '{0}' in '{1}' namespace.";
  89. public const string GenericTypeNameMismatch = @"Generic type name mismatch. Expected '{0}' in '{1}' namespace, got '{2}' in '{3}' namespace instead.";
  90. public const string GenericTypeNotExportable = @"Generic type '{0}' is not exportable.";
  91. public const string GetOnlyCollectionMustHaveAddMethod = @"On type '{0}', get-only collection must have an Add method.";
  92. public const string GetRealObjectReturnedNull = @"On the surrogate data contract for '{0}', GetRealObject method returned null.";
  93. public const string InvalidAnnotationExpectingText = @"For annotation element '{0}' in namespace '{1}', expected text but got element '{2}' in '{3}' namespace.";
  94. public const string InvalidAssemblyFormat = @"'{0}': invalid assembly format.";
  95. public const string InvalidCharacterEncountered = @"Encountered an invalid character '{0}'.";
  96. public const string InvalidClassDerivation = @"Invalid class derivation from '{0}' in '{1}' namespace.";
  97. public const string InvalidClrNameGeneratedForISerializable = @"Invalid CLR name '{2}' is generated for ISerializable type '{0}' in '{1}' namespace.";
  98. public const string InvalidClrNamespaceGeneratedForISerializable = @"Invalid CLR namespace '{3}' is generated for ISerializable type '{0}' in '{1}' namespace. Data contract namespace from the URI would be generated as '{2}'.";
  99. public const string InvalidDataNode = @"Invalid data node for '{0}' type.";
  100. public const string InvalidEmitDefaultAnnotation = @"Invalid EmilDefault annotation for '{0}' in type '{1}' in '{2}' namespace.";
  101. public const string InvalidEnumBaseType = @"Invalid enum base type is specified for type '{0}' in '{1}' namespace, element name is '{2}' in '{3}' namespace.";
  102. public const string InvalidISerializableDerivation = @"Invalid ISerializable derivation from '{0}' in '{1}' namespace.";
  103. public const string InvalidKeyValueType = @"'{0}' is an invalid key value type.";
  104. public const string InvalidKeyValueTypeNamespace = @"'{0}' in '{1}' namespace is an invalid key value type.";
  105. public const string InvalidReturnSchemaOnGetSchemaMethod = @"On type '{0}', the return value from GetSchema method was invalid.";
  106. public const string InvalidStateInExtensionDataReader = @"Invalid state in extension data reader.";
  107. public const string InvalidXmlDeserializingExtensionData = @"Invalid XML while deserializing extension data.";
  108. public const string IsAnyNotSupportedByNetDataContractSerializer = @"For type '{0}', IsAny is not supported by NetDataContractSerializer.";
  109. public const string IsDictionaryFormattedIncorrectly = @"IsDictionary formatted value '{0}' is incorrect: {1}";
  110. public const string ISerializableAssemblyNameSetToZero = @"ISerializable AssemblyName is set to ""0"" for type '{0}'.";
  111. public const string ISerializableCannotHaveDataContract = @"ISerializable type '{0}' cannot have DataContract.";
  112. public const string ISerializableContainsMoreThanOneItems = @"ISerializable cannot contain more than one item.";
  113. public const string ISerializableDerivedContainsOneOrMoreItems = @"Type derived from ISerializable cannot contain more than one item.";
  114. public const string ISerializableDoesNotContainAny = @"ISerializable does not contain any element.";
  115. public const string ISerializableMustRefFactoryTypeAttribute = @"ISerializable must have ref attribute that points to its factory type.";
  116. public const string ISerializableTypeCannotBeImported = @"ISerializable type '{0}' in '{1}' namespace cannot be imported: {2}";
  117. public const string ISerializableWildcardMaxOccursMustBe = @"ISerializable wildcard maxOccurs must be '{0}'.";
  118. public const string ISerializableWildcardMinOccursMustBe = @"ISerializable wildcard maxOccurs must be '{0}'.";
  119. public const string ISerializableWildcardNamespaceInvalid = @"ISerializable wildcard namespace is invalid: '{0}'.";
  120. public const string ISerializableWildcardProcessContentsInvalid = @"ISerializable wildcard processContents is invalid: '{0}'.";
  121. public const string IsReferenceGetOnlyCollectionsNotSupported = @"On type '{1}', attribute '{0}' points to get-only collection, which is not supported.";
  122. public const string IsValueTypeFormattedIncorrectly = @"IsValueType is formatted incorrectly as '{0}': {1}";
  123. public const string JsonAttributeAlreadyWritten = @"JSON attribute '{0}' is already written.";
  124. public const string JsonAttributeMustHaveElement = @"JSON attribute must have an owner element.";
  125. public const string JsonCannotWriteStandaloneTextAfterQuotedText = @"JSON writer cannot write standalone text after quoted text.";
  126. public const string JsonCannotWriteTextAfterNonTextAttribute = @"JSON writer cannot write text after non-text attribute. Data type is '{0}'.";
  127. public const string JsonDateTimeOutOfRange = @"JSON DateTime is out of range.";
  128. public const string JsonDuplicateMemberInInput = @"Duplicate member '{0}' is found in JSON input.";
  129. public const string JsonDuplicateMemberNames = @"Duplicate member, including '{1}', is found in JSON input, in type '{0}'.";
  130. public const string JsonEncodingNotSupported = @"JSON Encoding is not supported.";
  131. public const string JsonEncounteredUnexpectedCharacter = @"Encountered an unexpected character '{0}' in JSON.";
  132. public const string JsonEndElementNoOpenNodes = @"Encountered an end element while there was no open element in JSON writer.";
  133. public const string JsonExpectedEncoding = @"Expected encoding '{0}', got '{1}' instead.";
  134. public const string JsonInvalidBytes = @"Invalid bytes in JSON.";
  135. public const string JsonInvalidDataTypeSpecifiedForServerType = @"The specified data type is invalid for server type. Type: '{0}', specified data type: '{1}', server type: '{2}', object '{3}'."; // I wonder if this makes sense...
  136. public const string JsonInvalidDateTimeString = @"Invalid JSON dateTime string is specified: original value '{0}', start guide writer: {1}, end guard writer: {2}.";
  137. public const string JsonInvalidFFFE = @"FFFE in JSON is invalid.";
  138. public const string JsonInvalidItemNameForArrayElement = @"Invalid JSON item name '{0}' for array element (item element is '{1}' in JSON).";
  139. public const string JsonInvalidLocalNameEmpty = @"Empty string is invalid as a local name.";
  140. public const string JsonInvalidMethodBetweenStartEndAttribute = @"Invalid method call state between start and end attribute.";
  141. public const string JsonInvalidRootElementName = @"Invalid root element name '{0}' (root element is '{1}' in JSON).";
  142. public const string JsonInvalidStartElementCall = @"Invalid call to JSON WriteStartElement method.";
  143. public const string JsonInvalidWriteState = @"Invalid write state {1} for '{0}' method.";
  144. public const string JsonMethodNotSupported = @"Method {0} is not supported in JSON.";
  145. public const string JsonMultipleRootElementsNotAllowedOnWriter = @"Multiple root element is not allowed on JSON writer.";
  146. public const string JsonMustSpecifyDataType = @"On JSON writer data type '{0}' must be specified. Object string is '{1}', server type string is '{2}'.";
  147. public const string JsonMustUseWriteStringForWritingAttributeValues = @"On JSON writer WriteString must be used for writing attribute values.";
  148. public const string JsonNamespaceMustBeEmpty = @"JSON namespace is specified as '{0}' but it must be empty.";
  149. public const string JsonNestedArraysNotSupported = @"Nested array is not supported in JSON: '{0}'";
  150. public const string JsonNodeTypeArrayOrObjectNotSpecified = @"Either Object or Array of JSON node type must be specified.";
  151. public const string JsonNoMatchingStartAttribute = @"WriteEndAttribute was called while there is no open attribute.";
  152. public const string JsonOffsetExceedsBufferSize = @"On JSON writer, offset exceeded buffer size {0}.";
  153. public const string JsonOneRequiredMemberNotFound = @"Required member {1} in type '{0}' is not found.";
  154. public const string JsonOnlyWhitespace = @"Only whitespace characters are allowed for {1} method. The specified value is '{0}'";
  155. public const string JsonOpenAttributeMustBeClosedFirst = @"JSON attribute must be closed first before calling {0} method.";
  156. public const string JsonPrefixMustBeNullOrEmpty = @"JSON prefix must be null or empty. '{0}' is specified instead.";
  157. public const string JsonRequiredMembersNotFound = @"Required members {0} in type '{1}' are not found.";
  158. public const string JsonServerTypeSpecifiedForInvalidDataType = @"Server type is specified for invalid data type in JSON. Server type: '{0}', type: '{1}', dataType: '{2}', object: '{3}'.";
  159. public const string JsonSizeExceedsRemainingBufferSpace = @"JSON size exceeded remaining buffer space, by {0} byte(s).";
  160. public const string JsonTypeNotSupportedByDataContractJsonSerializer = @"Type '{0}' is not suppotred by DataContractJsonSerializer.";
  161. public const string JsonUnexpectedAttributeLocalName = @"Unexpected attribute local name '{0}'.";
  162. public const string JsonUnexpectedAttributeValue = @"Unexpected attribute value '{0}'.";
  163. public const string JsonUnexpectedEndOfFile = @"Unexpected end of file in JSON.";
  164. public const string JsonUnsupportedForIsReference = @"Unsupported value for IsReference for type '{0}', IsReference value is {1}.";
  165. public const string JsonWriteArrayNotSupported = @"JSON WriteArray is not supported.";
  166. public const string JsonWriterClosed = @"JSON writer is already closed.";
  167. public const string JsonXmlInvalidDeclaration = @"Attempt to write invalid XML declration.";
  168. public const string JsonXmlProcessingInstructionNotSupported = @"processing instruction is not supported in JSON writer.";
  169. public const string KeyTypeCannotBeParsedInSimpleDictionary = @"Key type '{1}' for collection type '{0}' cannot be parsed in simple dictionary.";
  170. public const string KnownTypeConfigGenericParamMismatch = @"Generic parameter count do not match between known type and configuration. Type is '{0}', known type has {1} parameters, configuration has {2} parameters.";
  171. public const string KnownTypeConfigIndexOutOfBounds = @"For known type configuration, index is out of bound. Root type: '{0}' has {1} type arguments, and index was {2}.";
  172. public const string KnownTypeConfigIndexOutOfBoundsZero = @"For known type configuration, index is out of bound. Root type: '{0}' has {1} type arguments, and index was {2}.";
  173. public const string KnownTypeConfigObject = @"Known type configuration specifies System.Object.";
  174. public const string MaxMimePartsExceeded = @"MIME parts number exceeded the maximum settings. Must be less than {0}. Specified as '{1}'.";
  175. public const string MimeContentTypeHeaderInvalid = @"MIME content type header is invalid.";
  176. public const string MimeHeaderInvalidCharacter = @"MIME header has an invalid character ('{0}', {1} in hexadecimal value).";
  177. public const string MimeMessageGetContentStreamCalledAlready = @"On MimeMessage, GetContentStream method is already called.";
  178. public const string MimeReaderHeaderAlreadyExists = @"MIME header '{0}' already exists.";
  179. public const string MimeReaderMalformedHeader = @"Malformed MIME header.";
  180. public const string MimeReaderResetCalledBeforeEOF = @"On MimeReader, Reset method is called before EOF.";
  181. public const string MimeReaderTruncated = @"MIME parts are truncated.";
  182. public const string MimeVersionHeaderInvalid = @"MIME version header is invalid.";
  183. public const string MimeWriterInvalidStateForClose = @"MIME writer is at invalid state for closing.";
  184. public const string MimeWriterInvalidStateForContent = @"MIME writer is at invalid state for content.";
  185. public const string MimeWriterInvalidStateForHeader = @"MIME writer is at invalid state for header.";
  186. public const string MimeWriterInvalidStateForStartPart = @"MIME writer is at invalid state for starting a part.";
  187. public const string MimeWriterInvalidStateForStartPreface = @"MIME writer is at invalid state for starting preface.";
  188. public const string MissingSchemaType = @"Schema type '{0}' is missing and required for '{1}' type.";
  189. public const string MixedContentNotSupported = @"Mixed content is not supported.";
  190. public const string MtomBoundaryInvalid = @"MIME boundary is invalid: '{0}'.";
  191. public const string MtomBufferQuotaExceeded = @"MTOM buffer quota exceeded. The maximum size is {0}.";
  192. public const string MtomContentTransferEncodingNotPresent = @"MTOM content transfer encoding is not present. ContentTransferEncoding header is '{0}'.";
  193. public const string MtomContentTransferEncodingNotSupported = @"MTOM content transfer encoding value is not supported. Raw value is '{0}', '{1}' in 7bit encoding, '{2}' in 8bit encoding, and '{3}' in binary.";
  194. public const string MtomContentTypeInvalid = @"MTOM content type is invalid.";
  195. public const string MtomDataMustNotContainXopInclude = @"MTOM data must not contain xop:Include element. '{0}' element in '{1}' namespace.";
  196. public const string MtomExceededMaxSizeInBytes = @"MTOM exceeded max size in bytes. The maximum size is {0}.";
  197. public const string MtomInvalidCIDUri = @"Invalid MTOM CID URI: '{0}'.";
  198. public const string MtomInvalidEmptyURI = @"empty URI is invalid for MTOM MIME part.";
  199. public const string MtomInvalidStartUri = @"Invalid MTOM start URI: '{0}'.";
  200. public const string MtomInvalidTransferEncodingForMimePart = @"Invalid transfer encoding for MIME part: '{0}', in binary: '{1}'.";
  201. public const string MtomMessageContentTypeNotFound = @"MTOM message content type was not found.";
  202. public const string MtomMessageInvalidContent = @"MTOM message content is invalid.";
  203. public const string MtomMessageInvalidContentInMimePart = @"MTOM message content in MIME part is invalid.";
  204. public const string MtomMessageInvalidMimeVersion = @"MTOM message has invalid MIME version. Expected '{1}', got '{0}' instead.";
  205. public const string MtomMessageNotApplicationXopXml = @"MTOM msssage type is not '{0}'.";
  206. public const string MtomMessageNotMultipart = @"MTOM message is not multipart: media type should be '{0}', media subtype should be '{1}'.";
  207. public const string MtomMessageRequiredParamNotSpecified = @"Required MTOM parameter '{0}' is not specified.";
  208. public const string MtomMimePartReferencedMoreThanOnce = @"Specified MIME part '{0}' is referenced more than once.";
  209. public const string MtomPartNotFound = @"MTOM part with URI '{0}' is not found.";
  210. public const string MtomRootContentTypeNotFound = @"MTOM root content type is not found.";
  211. public const string MtomRootNotApplicationXopXml = @"MTOM root should have media type '{0}' and subtype '{1}'.";
  212. public const string MtomRootPartNotFound = @"MTOM root part is not found.";
  213. public const string MtomRootRequiredParamNotSpecified = @"Required MTOM root parameter '{0}' is not specified.";
  214. public const string MtomRootUnexpectedCharset = @"Unexpected charset on MTOM root. Expected '{1}', got '{0}' instead.";
  215. public const string MtomRootUnexpectedType = @"Unexpected type on MTOM root. Expected '{1}', got '{0}' instead.";
  216. public const string MtomXopIncludeHrefNotSpecified = @"xop Include element did not specify '{0}' attribute.";
  217. public const string MtomXopIncludeInvalidXopAttributes = @"xop Include element has invalid attribute: '{0}' in '{1}' namespace.";
  218. public const string MtomXopIncludeInvalidXopElement = @"xop Include element has invalid element: '{0}' in '{1}' namespace.";
  219. public const string MustContainOnlyLocalElements = @"Only local elements can be imported.";
  220. public const string NoAsyncWritePending = @"No async write operation is pending.";
  221. public const string NonOptionalFieldMemberOnIsReferenceSerializableType = @"For type '{0}', non-optional field member '{1}' is on the Serializable type that has IsReference as {2}.";
  222. public const string OnlyDataContractTypesCanHaveExtensionData = @"On '{0}' type, only DataContract types can have extension data.";
  223. public const string PartialTrustISerializableNoPublicConstructor = @"Partial trust access required for the constructor on the ISerializable type '{0}'";
  224. public const string QueryGeneratorPathToMemberNotFound = @"The path to member was not found for XPath query generator.";
  225. public const string ReadNotSupportedOnStream = @"Read operation is not supported on the Stream.";
  226. public const string ReadOnlyClassDeserialization = @"Error on deserializing read-only members in the class: {0}";
  227. public const string ReadOnlyCollectionDeserialization = @"Error on deserializing read-only collection: {0}";
  228. public const string RecursiveCollectionType = @"Type '{0}' involves recursive collection.";
  229. public const string RedefineNotSupported = @"XML Schema 'redefine' is not supported.";
  230. public const string ReferencedBaseTypeDoesNotExist = @"Referenced base type does not exist. Data contract name: '{0}' in '{1}' namespace, expected type: '{2}' in '{3}' namespace. Collection can be '{4}' or '{5}'."; // is it the expected message? I'm quite unsure.
  231. public const string ReferencedCollectionTypesCannotContainNull = @"Referenced collection types cannot contain null.";
  232. public const string ReferencedTypeDoesNotMatch = @"Referenced type '{0}' does not match the expected type '{1}' in '{2}' namespace.";
  233. public const string ReferencedTypeMatchingMessage = @"Reference type matches.";
  234. public const string ReferencedTypeNotMatchingMessage = @"Reference type does not match.";
  235. public const string ReferencedTypesCannotContainNull = @"Referenced types cannot contain null.";
  236. public const string RequiresClassDataContractToSetIsISerializable = @"To set IsISerializable, class data cotnract is required.";
  237. public const string RootParticleMustBeSequence = @"Root particle must be sequence to be imported.";
  238. public const string RootSequenceMaxOccursMustBe = @"On root sequence, maxOccurs must be 1.";
  239. public const string RootSequenceMustBeRequired = @"Root sequence must have an item and minOccurs must be 1.";
  240. public const string SeekNotSupportedOnStream = @"Seek operation is not supported on this Stream.";
  241. public const string SerializationInfo_ConstructorNotFound = @"Constructor that takes SerializationInfo and StreamingContext is not found for '{0}'.";
  242. public const string SimpleContentNotSupported = @"Simple content is not supported.";
  243. public const string SimpleTypeRestrictionDoesNotSpecifyBase = @"This simpleType restriction does not specify the base type.";
  244. public const string SimpleTypeUnionNotSupported = @"simpleType union is not supported.";
  245. public const string SpecifiedTypeNotFoundInSchema = @"Specified type '{0}' in '{1}' namespace is not found in the schemas.";
  246. public const string SubstitutionGroupOnElementNotSupported = @"substitutionGroups on elements are not supported.";
  247. public const string SurrogatesWithGetOnlyCollectionsNotSupported = @"Surrogates with get-only collections are not supported. Type '{1}' contains '{2}' which is of '{0}' type.";
  248. public const string SurrogatesWithGetOnlyCollectionsNotSupportedSerDeser = @"Surrogates with get-only collections are not supported. Found on type '{0}'.";
  249. public const string TopLevelElementRepresentsDifferentType = @"Top-level element represents a different type. Expected '{0}' type in '{1}' namespace.";
  250. public const string TraceCodeElementIgnored = @"Element ignored";
  251. public const string TraceCodeFactoryTypeNotFound = @"Factory type not found";
  252. public const string TraceCodeObjectWithLargeDepth = @"Object with large depth";
  253. public const string TraceCodeReadObjectBegin = @"ReadObject begins";
  254. public const string TraceCodeReadObjectEnd = @"ReadObject ends";
  255. public const string TraceCodeWriteObjectBegin = @"WriteObject begins";
  256. public const string TraceCodeWriteObjectContentBegin = @"WriteObjectContent begins";
  257. public const string TraceCodeWriteObjectContentEnd = @"WriteObjectContent ends";
  258. public const string TraceCodeWriteObjectEnd = @"WriteObject ends";
  259. public const string TraceCodeXsdExportAnnotationFailed = @"XSD export annotation failed";
  260. public const string TraceCodeXsdExportBegin = @"XSD export begins";
  261. public const string TraceCodeXsdExportDupItems = @"XSD export duplicate items";
  262. public const string TraceCodeXsdExportEnd = @"XSD export ends";
  263. public const string TraceCodeXsdExportError = @"XSD export error";
  264. public const string TraceCodeXsdImportAnnotationFailed = @"XSD import annotation failed";
  265. public const string TraceCodeXsdImportBegin = @"XSD import begins";
  266. public const string TraceCodeXsdImportEnd = @"XSD import ends";
  267. public const string TraceCodeXsdImportError = @"XSD import error";
  268. public const string TypeCannotBeForwardedFrom = @"Type '{0}' in assembly '{1}' cannot be forwarded from assembly '{2}'.";
  269. public const string TypeCannotBeImported = @"Type '{0}' in '{1}' namespace cannot be imported: {2}";
  270. public const string TypeCannotBeImportedHowToFix = @"Type cannot be imported: {0}"; // I cannot see where HowToFix is given from...
  271. public const string TypeHasNotBeenImported = @"Type '{0}' in '{1}' namespace has not been imported.";
  272. public const string TypeMustBeIXmlSerializable = @"Type '{0}' must be IXmlSerializable. Contract type: '{1}', contract name: '{2}' in '{3}' namespace.";
  273. public const string TypeShouldNotContainAttributes = @"Type should not contain attributes. Serialization namespace: '{0}'.";
  274. public const string UnknownXmlType = @"Unknown XML type: '{0}'.";
  275. public const string WriteBufferOverflow = @"Write buffer overflow.";
  276. public const string WriteNotSupportedOnStream = @"Write operation is not supported on this '{0}' Stream.";
  277. public const string XmlCanonicalizationNotStarted = @"XML canonicalization was not started.";
  278. public const string XmlCanonicalizationStarted = @"XML canonicalization started";
  279. public const string XmlMaxArrayLengthOrMaxItemsQuotaExceeded = @"XML max array length or max items quota exceeded. It must be less than {0}.";
  280. public const string XmlMaxBytesPerReadExceeded = @"XML max bytes per read exceeded. It must be less than {0}.";
  281. public const string XmlMaxDepthExceeded = @"XML max depth exceeded. It must be less than {0}.";
  282. public const string XmlMaxStringContentLengthExceeded = @"XML max string content length exceeded. It must be less than {0}.";
  283. public const string XmlObjectAssignedToIncompatibleInterface = @"Object of type '{0}' is assigned to an incompatible interface '{1}'.";
  284. #endregion
  285. }
  286. }