ChangeLog 95 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263
  1. 2006-11-01 Atsushi Enomoto <[email protected]>
  2. * SchemaImporterExtension.cs,
  3. SchemaImporterExtensionCollection.cs : moved to S.X.S.Advanced.
  4. 2006-11-01 Atsushi Enomoto <[email protected]>
  5. * XmlSerializationGeneratedCode.cs : removed InternalSyncObject.
  6. * SerializationCodeGenerator.cs : since IXmlSerializerImplementation
  7. became a class, it needs explicit "override".
  8. Since InternalSyncObject is gone, it needs another lock target.
  9. * IXmlSerializerImplementation.cs : removed.
  10. * XmlSerializerImplementation.cs : added.
  11. * XmlSerializer.cs : removed extra GenerateSerializer() overloads.
  12. IXmlSerializerImplementation -> XmlSerializerImplementation.
  13. * XmlSchemas.cs : removed Schemas. hacked Compile().
  14. Now it implements IEnumerable<XmlSchema>.
  15. * XmlSchemaEnumerator.cs : added missing type.
  16. 2006-11-01 Atsushi Enomoto <[email protected]>
  17. * XmlAttributeEventArgs.cs : added ExpectedAttributes. Note that it
  18. is not considered in XmlSerializationReader yet.
  19. * XmlElementEventArgs.cs : added ExpectedElements. Note that it
  20. is not considered in XmlSerializationReader yet.
  21. * XmlSerializationReader.cs : added some overloads for
  22. UnknownElement()/-Attribute()/-Node().
  23. 2006-11-01 Atsushi Enomoto <[email protected]>
  24. * CodeGenerationOptions.cs : [XmlEnum], [XmlIgnore] and
  25. [Serializable].
  26. * XmlSerializationCollectionFixupCallback.cs,
  27. XmlNodeEventHandler.cs,
  28. XmlSerializationReadCallback.cs,
  29. UnreferencedObjectEventHandler.cs,
  30. XmlSerializationWriteCallback.cs,
  31. XmlAttributeEventHandler.cs,
  32. XmlElementEventHandler.cs,
  33. XmlSerializationFixupCallback.cs :
  34. exclude [Serializable] in NET_2_0.
  35. * XmlSerializerNamespaces.cs : removed beta-only AddInternal().
  36. * XmlSerializerVersionAttribute.cs : removed [Obsolete].
  37. * XmlMappingAccess.cs : it is [Flags].
  38. * SchemaImporter.cs : implement Extensions.
  39. * XmlAnyElementAttribute.cs,
  40. XmlArrayAttribute.cs : added Order.
  41. Note that it is not considered in XmlSerializer yet.
  42. 2006-10-25 Ankit Jain <[email protected]>
  43. * SerializationCodeGenerator.cs (GenerateContract): Handle
  44. 'generateAsInternal' config option.
  45. 2006-10-10 Gert Driesen <[email protected]>
  46. * XmlSerializer.cs: Output namespace declarations in same order as
  47. MS.
  48. 2006-10-08 Gert Driesen <[email protected]>
  49. * XmlSerializer.cs: Corrected exception message when deserialization
  50. fails.
  51. * SerializationCodeGenerator.cs: Added support for flag enums.
  52. * XmlReflectionImporter.cs: Use InvalidOperationException wrapper for
  53. all exceptions that occur while reflecting member. Validate default
  54. values to match MS.
  55. * SoapReflectionImporter.cs: Revert small part of previous patch as
  56. XmlSerializer expects enum value.
  57. 2006-10-01 Gert Driesen <[email protected]>
  58. * SoapReflectionImporter.cs: To match MS.NET, let exceptions that are
  59. thrown during creation of map member bubble up. Only allow
  60. SoapAttribute on primitive types and enums. Obtain default value for
  61. attribute members.
  62. 2006-09-20 Vladimir Krasnov <[email protected]>
  63. * XmlTypeAttribute.cs: added property AnonymousType for 2.0
  64. 2006-09-12 Lluis Sanchez Gual <[email protected]>
  65. * System.Xml.Serialization/XmlSchemaImporter.cs: Added null check.
  66. 2006-09-11 Andrew Skiba <[email protected]>
  67. * XmlSchemaImporter.cs,XmlMemberMapping.cs,SchemaImporter.cs: ifdef
  68. TARGET_JVM
  69. 2006-09-05 Lluis Sanchez Gual <[email protected]>
  70. * XmlSchemaImporter.cs: In MS.NET 2.0, simple type arrays are mapped
  71. to strings. Make sure maps returned by ImportClassSimpleType are always
  72. simple type maps. All this fixes bug #77585.
  73. 2006-09-05 Lluis Sanchez Gual <[email protected]>
  74. * XmlSchemaImporter.cs: Always import simple type unions
  75. as string (like MS.NET does). Fixes bug #79234.
  76. 2006-08-25 Kornél Pál <[email protected]>
  77. * MapCodeGenerator.cs: Use assembly file version constants.
  78. 2006-07-24 Atsushi Enomoto <[email protected]>
  79. * XmlMappingAccess.cs : new type in 2.0 RTM.
  80. * XmlCodeExporter.cs, SoapCodeExporter.cs,
  81. MapCodeGenerator.cs,
  82. XmlSchemaImporter.cs, SoapSchemaImporter.cs, SchemaImporter.cs,
  83. SchemaImporterExtension.cs, SchemaImporterExtensionCollection.cs,
  84. XmlMemberMapping.cs, XmlSerializationReader.cs :
  85. several 2.0 API fixes from betas to RTM.
  86. 2006-06-07 Lluis Sanchez Gual <[email protected]>
  87. * XmlTypeMapMember.cs: Added GlobalIndex property.
  88. * XmlTypeMapping.cs: When adding a member, initialize its GlobalIndex
  89. property.
  90. * SerializationCodeGenerator.cs:
  91. * XmlSerializationWriterInterpreter.cs:
  92. * XmlSerializationReaderInterpreter.cs: Use GlobalIndex instead of
  93. Index to get/set the values from the input array, since some Index
  94. values are shared between attribute and element members. Fixes
  95. bug #78562.
  96. 2006-05-30 Atsushi Enomoto <[email protected]>
  97. * SerializationCodeGenerator.cs,
  98. XmlSerializerReaderInterpreter.cs : handle CDATA section as text
  99. node. Fixed bug #78536.
  100. 2006-05-15 Gert Driesen <[email protected]>
  101. * XmlCodeExporter.cs: Added bool argument to GenerateClass and
  102. GenerateEnum methods that specifies whether we're dealing with a type
  103. for a top-level element. In GenerateClass, do not always add Namespace
  104. argument for XmlRootAttribute if isTopLevel is false, and do not
  105. emit XmlRootAttribute if isTopLevel is false and no arguments have been
  106. added.
  107. * SoapCodeExporter.cs: Added bool argument to GenerateClass and
  108. GenerateEnum methods.
  109. * MapCodeGenerator.cs: Added bool argument to GenerateClass and
  110. GenerateEnum methods.
  111. 2006-05-03 Lluis Sanchez Gual <[email protected]>
  112. * SerializationCodeGenerator.cs: Allow generating serializer for
  113. reading an XmlElement or XmlDocument as root element.
  114. Properly generate jagged array creation.
  115. 2006-04-28 Atsushi Enomoto <[email protected]>
  116. * XmlSerializationWriter.cs : fix cosmetic typo (bug #78228).
  117. 2006-04-26 Gert Driesen <[email protected]>
  118. * SerializationCodeGenerator.cs: For flag enums, we should split on all
  119. whitespace chars instead of only on blanks.
  120. * XmlTypeMapping.cs: Same. Added ToEnum method for converting from
  121. constant name(s) to integral enum value.
  122. 2006-04-26 Gert Driesen <[email protected]>
  123. * SoapAttributes.cs: The DefaultValueAttribute.Value should be returned
  124. as SoapDefaultValue instead of the attribute itself. Fixes bug #78205.
  125. 2006-04-24 Gert Driesen <[email protected]>
  126. * XmlSchemaExporter.cs: Introduce XmlSchemaObjectContainer class to
  127. allow XML Schema items to be added to its parent in the same order
  128. as MS.NET (schema elements before complex types, ...).
  129. 2006-04-20 Gert Driesen <[email protected]>
  130. * XmlCodeExporter.cs: On 2.0 profile, CodeGenerationOptions defaults to
  131. GenerateProperties. Use full type name for XML serialization attributes
  132. instead of shortcut (without Attribute suffix). Always add Namespace
  133. argument for XmlRootAttribute on classes. Added IsNullable argument for
  134. XmlRootRootAttribute on classes. For attribute members, only output
  135. Form argument for XmlSchemaForm.Qualified. Use MapCodeGenerator base
  136. ctor that takes CodeGenerationOptions.
  137. * SoapCodeExporter.cs: Use MapCodeGenerator base ctor that takes
  138. CodeGenerationOptions.
  139. * MapCodeGenerator.cs: Added CodeGenerationOptions to ctor. On 2.0
  140. profile, emit GeneratedCodeAttribute, SerializableAttribute,
  141. DebuggerStepThroughAttribute and DesignerCategoryAttribute for classes.
  142. To match MS.NET, emit attribute members before element members.
  143. * XmlReflectionImporter.cs: Enums are never nullable.
  144. * XmlSchemaImporter.cs: Set IsNullable on map using value of
  145. XmlSchemaElement.IsNillable. Added LocateElement overload that takes
  146. XmlSchemaElement.
  147. 2006-04-15 Gert Driesen <[email protected]>
  148. * XmlSchemaImporter.cs: Make sure we pass TypeData for primitive types
  149. to XmlReflectionImporter and SoapReflectionImporter to keep from
  150. always ending up with the XSD type that directly maps to the CLR type.
  151. * XmlReflectionImporter.cs: Added overloads taking TypeData instead of
  152. Type. This improves performance by avoiding the use of
  153. TypeTranslator.GetTypeData for types imported from a schema and fixes
  154. bug #77907.
  155. * SoapReflectionImporter.cs: Same.
  156. 2006-04-11 Lluis Sanchez Gual <[email protected]>
  157. * XmlSchemas.cs: In 1.1, don't allow adding two schemas
  158. with the same namespaces. This is allowed in 2.0. Fixed
  159. the Find() method to cope with this case. Based on a patch
  160. by David Jung.
  161. 2006-03-22 Gert Driesen <[email protected]>
  162. * XmlReflectionImporter.cs: Throw NotSupportException instead of
  163. InvalidOperationException (IOE) if void is specified as type in
  164. ImportTypeMapping. To match MS.NET, surround importing of type in
  165. try/catch block, and wrap any IOE in another IOE adding information
  166. on the type that was being reflected. In CreateTypeMapping, surround
  167. creating of map member in try/catch block, and wrap any IOE in another
  168. IOE adding information on the member that was being reflected.
  169. Modified exception message for missing enumeration value to match
  170. MS.NET. In ImportTextElementInfo, throw IOE if Type is set in
  171. XmlTextAttribute, and it differs from type of reflected member when
  172. schema type of member is primitive or enum. Fixed bug #77591.
  173. 2006-03-10 Gert Driesen <[email protected]>
  174. * XmlSchemaExporter.cs: Import namespace of schema generated for
  175. non-xsd primitive. Do not set zero-length TargetNamespace to avoid
  176. emitting empty targetNamespace attribute in generated schema.
  177. * XmlReflectionImporter.cs: Use WSDL types namespace for non-xsd
  178. primitives.
  179. 2006-03-10 Gert Driesen <[email protected]>
  180. * XmlTypeMapping.cs: EnumMapMember now also stores value for enums.
  181. Modified EnumMapping.GetXmlName to use XmlCustomFormatter to support
  182. serialization of integral value to enum constant name, and made sure
  183. the exceptions we throw match those of MSFT. In EnumMapping.GetEnumName
  184. throw InvalidOperationException if no matching enum constant exists.
  185. In EnumMap ctor, initialize arrays holding XML names, enum names and
  186. enum values.
  187. * XmlSerializationReaderInterpreter.cs: Pass full type name to
  188. EnumMapping.GetEnumName for construction of exception message.
  189. * XmlSerializer.cs: In Deserialize, wrap InvalidOperationException
  190. and InvalidCastException in another InvalidOperationException to match
  191. MSFT. In Serialize, wrap InvalidOperationException, InvalidCastException
  192. and the inner exception for a TargetInvocationException in an
  193. InvalidOperationException to match MSFT.
  194. * SerializationCodeGenerator.cs: In GenerateGetXmlEnumValue, use
  195. XmlCustomFormatter.FromEnum in order to also support serialization
  196. integral value to enum constant name. In 2.0 profile, throw
  197. InvalidOperationException if numeric value cannot be serialized into
  198. an enum constant value. In GenerateSingleEnumValue, no longer attempt
  199. to parse unknown constant value but instead report it as
  200. InvalidOperationException. Use string.Length instead of "" comparison
  201. to check whether a string is empty. Fixed compiler warnings in
  202. generated code (possible empty statement).
  203. * XmlSerializationWriterInterpreter.cs: Pass full type name to
  204. EnumMap.GetXmlName.
  205. * XmlSchemaImporter.cs: Pass full type name to EnumMap.GetEnumName
  206. to allow it to be used in exception messages.
  207. * XmlReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
  208. enum fields. Use IsDefined instead of GetCustomAttributes for checking
  209. if a certain attribute is defined. Use integral value of enum constant
  210. in EnumMapMember ctor.
  211. * SoapReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
  212. enum fields. Use IsDefined instead of GetCustomAttributes for checking
  213. if a certain attribute is defined. Use integral value of enum constant
  214. in EnumMapMember ctor.
  215. 2006-03-07 Lluis Sanchez Gual <[email protected]>
  216. * XmlReflectionImporter.cs: Ignore the element namespace if
  217. the schema form is set to Unqualified. Fixes bug #75019.
  218. 2006-02-22 Gert Driesen <[email protected]>
  219. * SerializationCodeGenerator.cs: Omit return statement in ReadObject
  220. method if GenerateReadListElement returns null. Fixes bug #77588.
  221. 2006-02-21 Lluis Sanchez Gual <[email protected]>
  222. * XmlSerializer.cs: Fix the previous fix.
  223. 2006-02-21 Lluis Sanchez Gual <[email protected]>
  224. * XmlSerializer.cs: Added option to avoid falling back to the
  225. interpreted serializer if the code generator fails. To be used
  226. in the test suite.
  227. 2006-02-16 Gert Driesen <[email protected]>
  228. * TypeData.cs: Fixed the following issues when dealing with Array
  229. SchemaType:
  230. - if a type implements IDictionary, throw a NotSupportedException
  231. - if a type implements ICollection, then an Add method must exist
  232. which takes a single argument of a type to which the listitem type
  233. is assignable (meaning a base type or an interface that it
  234. implements). If such a method does not exist, then throw an
  235. InvalidOperationException.
  236. - if a type implements IEnumerable, then the listitem type is
  237. determined by the type of the Current property of the (IEnumerator)
  238. type returned by the GetEnumerator() method or the private
  239. implementation of IEnumerable.GetEnumerator(). If there's no
  240. public Current property on the IEnumerator, then System.Object
  241. is assumed as listitem type. Similar as for types implementing
  242. ICollection, an Add method must exist which takes a single argument
  243. of a type to which the listitem type is assignable (meaning a base
  244. type or an interface that it implements). If such a method does not
  245. exist, then throw an InvalidOperationException.
  246. 2006-02-16 Lluis Sanchez Gual <[email protected]>
  247. * XmlSchemaImporter.cs: Support importing complex types with
  248. simple content based on enums. Fixes bug #76848.
  249. 2006-02-11 Gert Driesen <[email protected]>
  250. * SoapAttributeAttribute.cs: Set eol-style to CRLF.
  251. * SoapElementAttribute.cs: Same.
  252. * SoapEnumAttribute.cs: Same.
  253. * SoapIncludeAttribute.cs: Same.
  254. * SoapSchemaMember.cs: Same.
  255. * SoapTypeAttribute.cs: Same.
  256. * XmlArrayAttribute.cs: Same.
  257. * XmlAttributeAttribute.cs: Same.
  258. * XmlChoiceIdentifierAttribute.cs: Same.
  259. * XmlElementAttribute.cs: Same.
  260. * XmlEnumAttribute.cs: Same.
  261. * XmlRootAttribute.cs: Same.
  262. * XmlSchemaImporter.cs: Same.
  263. * XmlTextAttribute.cs: Same.
  264. * XmlTypeAttribute.cs: Same.
  265. * XmlTypeMapping.cs: Same.
  266. * SoapAttributeOverrides.cs: Fixed line endings. Set eol-style to CRLF.
  267. * CodeIdentifiers.cs: Same.
  268. * SoapCodeExporter.cs: Same.
  269. * SoapAttributes.cs: Same.
  270. * SoapIgnoreAttribute.cs: Same.
  271. * SoapSchemaImporter.cs: Same.
  272. * TypeMember.cs: Same.
  273. * UnreferencedObjectEventArgs.cs: Same.
  274. * XmlAnyAttributeAttribute.cs: Same.
  275. * XmlAnyElementAttributes.cs: Same.
  276. * XmlArrayItemAttributes.cs: Same.
  277. * XmlAttributeEventArgs.cs: Same.
  278. * XmlCodeExporter.cs: Same.
  279. * XmlElementAttributes.cs: Same.
  280. * XmlElementEventArgs.cs: Same.
  281. * XmlIgnoreAttribute.cs: Same.
  282. * XmlNamespaceDeclarationsAttribute.cs: Same.
  283. * XmlNodeEventArgs.cs: Same.
  284. * XmlReflectionMember.cs: Same.
  285. * XmlSchemas.cs: Same.
  286. * XmlSerializerNamespaces.cs: Same.
  287. * XmlTypeMapMemberElement.cs: Set eol-style to native.
  288. 2006-02-10 Gert Driesen <[email protected]>
  289. * CodeExporter.cs: Set eol-style to native.
  290. * CodeGenerationOptions.cs: Same.
  291. * CodeIdentifier.cs: Same.
  292. * ImportContext.cs: Same.
  293. * IXmlSerializable.cs: Same.
  294. * IXmlSerializerImplementation.cs: Same.
  295. * IXmlTextParser.cs: Same.
  296. * MapCodeGenerator.cs: Same.
  297. * ReflectionHelper.cs: Same. Fixed line endings.
  298. * SchemaImporter.cs: Same.
  299. * SchemaImporterExtensionCollection.cs: Same.
  300. * SchemaImporterExtension.cs: Same.
  301. * SchemaTypes.cs: Same.
  302. * SerializationCodeGeneratorConfiguration.cs: Same.
  303. * SerializationCodeGenerator.cs: Same.
  304. * SerializationSource.cs: Same.
  305. * SoapReflectionImporter.cs: Same.
  306. * SoapSchemaExporter.cs: Same.
  307. * TypeData.cs: Same.
  308. * TypeTranslator.cs: Same.
  309. * UnreferencedObjectEventHandler.cs: Same.
  310. * XmlAnyElementAttribute.cs: Same.
  311. * XmlArrayItemAttribute.cs: Same.
  312. * XmlAttributeEventHandler.cs: Same.
  313. * XmlAttributeOverrides.cs: Same.
  314. * XmlAttributes.cs: Same.
  315. * XmlDeserializationEvents.cs: Same.
  316. * XmlElementEventHandler.cs: Same.
  317. * XmlIncludeAttribute.cs: Same.
  318. * XmlMapping.cs: Same.
  319. * XmlMemberMapping.cs: Same.
  320. * XmlMembersMapping.cs: Same.
  321. * XmlNodeEventHandler.cs: Same.
  322. * XmlReflectionImporter.cs: Same.
  323. * XmlSchemaExporter.cs: Same.
  324. * XmlSchemaProviderAttribute.cs: Same.
  325. * XmlSerializationCollectionFixupCallback.cs: Same.
  326. * XmlSerialiationFixupCallback.cs: Same.
  327. * XmlSerializationGeneratedCode.cs: Same.
  328. * XmlSerializationReadCallback.cs: Same.
  329. * XmlSerializationReader.cs: Same.
  330. * XmlSerializationReaderInterpreter.cs: Same.
  331. * XmlSerializationWriteCallback.cs: Same.
  332. * XmlSerializationWriterInterpreter.cs: Same.
  333. * XmlSerializerAssemblyAttribute.cs: Same.
  334. * XmlSerializer.cs: Same.
  335. * XmlSerializerFactory.cs: Same.
  336. * XmlSerializerVersionAttribute.cs: Same.
  337. * XmlTypeMapElementInfo.cs: Same.
  338. * XmlTypeMapMemberAttribute.cs: Same.
  339. * XmlTypeMapMember.cs: Same.
  340. * XmlTypeMapMemberNamespaces.cs: Same.
  341. 2006-02-09 Gert Driesen <[email protected]>
  342. * XmlTypeMapping.cs: Modified GetRealTypeMap to return current map
  343. if map represents enum. Fixes bug #77501.
  344. 2006-02-09 Gert Driesen <[email protected]>
  345. * XmlSerializationWriter.cs: Implemented 2.0 version of FromEnum, and
  346. CreateInvalidEnumValueException. Set eol-style to native.
  347. * XmlCustomerFormatter.cs: Added FromEnum overload that takes name of
  348. enum for which string value must be created. Set eol-style to native.
  349. Modified FromEnum to behave more like MSFT's implementation:
  350. - treat value as bit field.
  351. - no longer return empty string if the value matches an id for which there's no corresponding
  352. name.
  353. - if one of the ids has value 0 and there's a match for the enum value
  354. (with a zero length XML name) or the enum value is 0, then return the
  355. corresponding XML for the id with value 0.
  356. - in 2.0 profile, throw InvalidOperationException if no match is found
  357. for (part of) the enum value.
  358. Modifies ToEnum to match the MSFT implementation (as described in
  359. .NET 2.0 SDK):
  360. - Expect hashtable containing enum names as key, and corresponding
  361. integral numbers as value.
  362. - Do not report exception for whitespace-only value.
  363. - Support space (MS docs are not clear about this) delimited list
  364. of names.
  365. - typeName is only used to construct exception message.
  366. 2006-02-09 Lluis Sanchez Gual <[email protected]>
  367. * System.Xml.Serialization/XmlTypeMapMemberElement.cs: When
  368. looking for the correct element definition for a member,
  369. based on the value type, take into account subypes of the
  370. declared types. Fixes bug #77447.
  371. 2006-02-07 Konstantin Triger <[email protected]>
  372. * XmlReflectionImporter.cs: remove local name encoding for enums.
  373. 2006-01-08 Gert Driesen <[email protected]>
  374. * XmlSchemaImporter.cs: Fixed line endings (to CRLF).
  375. 2006-01-07 Gert Driesen <[email protected]>
  376. * XmlTypeMapping.cs: Fixed line endings.
  377. * TypeTranslator.cs: Fixed line endings.
  378. 2005-12-07 Lluis Sanchez Gual <[email protected]>
  379. * XmlSerializationReaderInterpreter.cs: When deserializing a "flat"
  380. collection, don't create a new collection if the property already has a
  381. collection instance.
  382. * SerializationCodeGenerator.cs: same as above. Also return an empty
  383. string for flag enum default values.
  384. 2005-12-06 Konstantin Triger <[email protected]>
  385. * TypeTranslator.cs: TARGET_JVM: save additional types per AppDomain.
  386. 2005-12-05 Lluis Sanchez Gual <[email protected]>
  387. * XmlSerializationReaderInterpreter.cs:
  388. * SerializationCodeGenerator.cs: When deserializing a collection,
  389. don't create a new collection if the property already has a
  390. collection instance. This does not apply to arrays. Changed how nullabe
  391. array properties are set. Setting IsNullable=false to the property means
  392. that it won't be set if the read array is null (so, if the property
  393. already has a value, it will be kept).
  394. Another change is that can't never be null (only arrays can).
  395. 2005-12-01 Lluis Sanchez Gual <[email protected]>
  396. * TypeTranslator.cs: In GetTypeData, if an xmlType is specified for
  397. a cli array type, consider it refering to the type of array elements.
  398. This fixes bug #76860. Also added some locking.
  399. 2005-11-27 Konstantin Triger <[email protected]>
  400. * TypeData.cs, XmlSchemaExporter.cs, TypeTranslator.cs: correctly
  401. export non-xsd primitive types.
  402. 2005-11-24 Vladimir Krasnov <[email protected]>
  403. * XmlTypeMapping.cs: fixed GetXmlName method, added difference
  404. of value serialization of flags and non-flags enums
  405. 2005-11-23 Konstantin Triger <[email protected]>
  406. * XmlSchemaExporter.cs: do not import empty namespaces.
  407. 2005-11-17 Vladimir Krasnov <[email protected]>
  408. * XmlSerializationReaderInterpreter.cs: fixed ReadEnumElement
  409. method, ReadEndElement should check XmlNodeType.
  410. * XmlTypeMapping.cs: fixed GetXmlName method, it should not
  411. write zero as default enum value.
  412. 2005-11-16 Vladimir Krasnov <[email protected]>
  413. * XmlReflectionImporter.cs: fixed field order returned by
  414. reflection in method GetReflectionMembers. TARGET_JVM only.
  415. 2005-11-07 Lluis Sanchez Gual <[email protected]>
  416. * XmlSchemaImporter.cs: Added support for restrictions with
  417. embedded simple type definitions.
  418. 2005-11-04 Atsushi Enomoto <[email protected]>
  419. * XmlElementAttribute.cs : gimme Order; it fixes 100 or more
  420. sys.xml.schema corcompare diffs.
  421. 2005-10-17 Lluis Sanchez Gual <[email protected]>
  422. * SerializationCodeGenerator.cs:
  423. * XmlSerializationWriterInterpreter.cs: Arrays of XmlNode don't
  424. need to be all XmlElments. Fix by Atsushi for bug #76288.
  425. 2005-09-26 Lluis Sanchez Gual <[email protected]>
  426. * XmlTypeMapping.cs: Added ChoiceMember to ListMap.
  427. In ListMap.FindElement, take into account the ChoiceMember
  428. if set.
  429. * SerializationCodeGenerator.cs:
  430. * XmlSerializationReaderInterpreter.cs: For lists with a choice
  431. member, fill the member with the corresponding enum values.
  432. * XmlReflectionImporter.cs: Properly reflect the choice member
  433. when applied to a list.
  434. * XmlSerializationWriterInterpreter.cs: Track class changes.
  435. * XmlTypeMapMemberElement.cs: Added ChoiceTypeData property.
  436. All this fixes bug #76203.
  437. 2005-09-21 Lluis Sanchez Gual <[email protected]>
  438. * SoapReflectionImporter.cs: Check the correct defaults
  439. for attributes.
  440. 2005-09-21 Lluis Sanchez Gual <[email protected]>
  441. * SerializationSource.cs: Fix nullref.
  442. * XmlReflectionImporter.cs: When registering a type using
  443. IncludeType(), make sure it is added as a subtype and the
  444. map for typeof(object) if it has already been imported.
  445. Fixes bug #76049.
  446. 2005-09-21 Lluis Sanchez Gual <[email protected]>
  447. * XmlSerializationWriter.cs: Also internally serialize
  448. arrays of object (see previous change).
  449. 2005-09-21 Lluis Sanchez Gual <[email protected]>
  450. * XmlSerializationWriter.cs: Properly serialize arrays
  451. of primitive types when not explicitely specified in
  452. a container class. Based on a patch by Konstantin Triger.
  453. Fixes bug #75986.
  454. 2005-08-24 Lluis Sanchez Gual <[email protected]>
  455. * TypeData.cs: Reset the hasPublicConstructor flag when the
  456. type is an interface.
  457. * XmlSerializationWriterInterpreter.cs: Get the Count property
  458. from the object type instead of the property type (it didn't
  459. work for IList).
  460. * ReflectionHelper.cs: In CheckSerializableType, don't trow
  461. if the type is a collection interface. All this fixes
  462. bug #75855.
  463. 2005-08-06 Lluis Sanchez Gual <[email protected]>
  464. * XmlTypeMapping.cs: Added null check.
  465. 2005-08-05 Lluis Sanchez Gual <[email protected]>
  466. * XmlTypeMapping.cs: Added ListMembers property that returns
  467. members which are collections.
  468. * SerializationCodeGenerator.cs:
  469. * XmlSerializationReaderInterpreter.cs: Initialize collection
  470. members to an empty collection by default. Fixes bug #75662.
  471. 2005-08-01 Gert Driesen <[email protected]>
  472. * XmlMapping.cs: API compatibility fixes. Ctor is not protected
  473. in .NET 1.1. SetKey is not obsolete in .NET 2.0 Beta 2.
  474. 2005-07-31 Gert Driesen <[email protected]>
  475. * SoapAttributeAttribute.cs: Return zero-length string if
  476. AttributeName or DataType are null.
  477. * SoapEnumAttribute.cs: Return zero-length string if Name is null.
  478. * SoapIncludeAttribute.cs: Avoid using property in ctor.
  479. * SoapSchemaMember.cs: Return zero-length string if MemberName is
  480. null. MemberType should be XmlQualifiedName.Empty by default.
  481. * SoapTypeAttribute.cs: Return zero-length string if TypeName is
  482. null. Avoid using property in ctor.
  483. * XmlArrayAttribute.cs: Return zero-length string if ElementName is
  484. null. Avoid using property in ctor.
  485. * XmlArrayItemAttribute.cs: IsNullable must be false by default.
  486. Return zero-length string if DataType or ElementName are null. Avoid
  487. using property in ctor.
  488. * SoapElementAttribute.cs: Return zero-length string when DataType
  489. or ElementName are null. Avoid using property in ctor.
  490. * XmlAnyElementAttribute.cs: Return zero-length string when Name is
  491. null. Avoid using property in ctor.
  492. * XmlAttributeAttribute.cs: Avoid using property in ctor. Return
  493. zero-length string if AttributeName or DataType are null.
  494. * XmlChoiceIdentifierAttribute.cs: Return zero-length string when
  495. MemberName is null.
  496. * XmlElementAttribute.cs: Return zero-length string when DataType or
  497. ElementName are null. Avoid using property in ctor.
  498. * XmlEnumAttribute.cs: Avoid using property in ctor.
  499. * XmlIncludeAttribute.cs: Avoid using property in ctor.
  500. * XmlReflectionImporter.cs: AttributeName, ElementName and DataType
  501. can no longer be null. Use check for zero-length string to determine
  502. whether they are set. Corrected exception message when DataType is
  503. set for complex type.
  504. * XmlRootAttribute.cs: Return zero-length string if DataType or
  505. ElementName are null. Avoid using property in ctor.
  506. * XmlTextAttribute.cs: Return zero-length string if DataType is null.
  507. * XmlTypeAttribute.cs: Return zero-length string if TypeName is null.
  508. 2005-07-14 Lluis Sanchez Gual <[email protected]>
  509. * SerializationCodeGenerator.cs: In the generated serializer always
  510. use the Object equality operator when comparing objects to serialize
  511. to null, since those objects may have the equality operator
  512. overloaded. This fixes bug #75543.
  513. 2005-07-01 Lluis Sanchez Gual <[email protected]>
  514. * XmlCustomFormatter.cs: Properly read/write duration values.
  515. 2005-06-28 Lluis Sanchez Gual <[email protected]>
  516. * XmlSerializer.cs: Fix race between XmlSerializer and the
  517. serializer generator.
  518. 2005-06-14 Lluis Sanchez Gual <[email protected]>
  519. * XmlTypeMapElementInfo.cs: Added new DataTypeName property for
  520. getting the real xml type name of a member.
  521. * XmlSerializationWriterInterpreter.cs: Use that new property
  522. to get the type name of primitive types. This should fix bug #75180.
  523. 2005-06-07 Lluis Sanchez Gual <[email protected]>
  524. * SerializationCodeGenerator.cs: When reading members by order,
  525. call a MoveToContext after each member read. In the fixup method
  526. don't cast returned values if it is reading an object array.
  527. * XmlSchemaImporter.cs: In ImportDerivedTypeMapping, if the type
  528. being imported is a primitive type, create a wrapper class that
  529. inherits from the provided one. This fixes bug #68809.
  530. * XmlSerializationReader.cs: Properly report unreferenced objects.
  531. Created an overload of ReadTypedPrimitive that reports elements of
  532. unknown type. Implemented Referenced().
  533. 2005-05-30 Lluis Sanchez Gual <[email protected]>
  534. * XmlReflectionImporter.cs: Don't ignore type namespaces explicitely
  535. set to the default namespace. This fixes bug #73035.
  536. 2005-05-12 Lluis Sanchez Gual <[email protected]>
  537. * SoapReflectionImporter.cs: In ImportTypeMap, make sure that all
  538. types indirectly imported by this method use the same namespace.
  539. 2005-05-09 Atsushi Enomoto <[email protected]>
  540. * TypeTableEntry.cs : removed obsolete code.
  541. 2005-04-26 Lluis Sanchez Gual <[email protected]>
  542. * XmlReflectionImporter.cs, SoapReflectionImporter.cs: ignore array
  543. properties which are read only. Fixes bug #74723.
  544. 2005-04-14 Lluis Sanchez Gual <[email protected]>
  545. * XmlReflectionImporter.cs:
  546. * SoapReflectionImporter.cs:
  547. * TypeTranslator.cs: Encode local names withXmlConvert.EncodeLocalName
  548. where needed. Based on a patch by Konstantin Triger.
  549. 2005-04-12 Lluis Sanchez Gual <[email protected]>
  550. * XmlTypeMapping.cs: Added new XmlSerializableMapping class.
  551. * XmlSchemaExporter.cs: When exporting an IXmlSerializable type,
  552. export the schema that it defines. In ImportNamespace, removed
  553. check for default namespace, since it may be included from a non
  554. default namespace.
  555. * XmlReflectionImporter.cs: Create a special map for IXmlSerializable
  556. types. All this based on a patch by Konstantin Triger.
  557. * SerializationCodeGenerator.cs:
  558. * XmlMapping.cs:
  559. * XmlSerializationReaderInterpreter.cs:
  560. * SoapCodeExporter.cs:
  561. * XmlTypeMapMemberAttribute.cs:
  562. * XmlSerializationReader.cs:
  563. * XmlCodeExporter.cs: Fixed some warnings.
  564. 2005-04-10 Andrew Skiba <[email protected]>
  565. * XmlSerializer.cs: fixed a typo - wrong TARGET_JVM condition.
  566. 2005-04-03 Andrew Skiba <[email protected]>
  567. * XmlSerializer.cs: added TARGET_JVM that does not support on-the-fly
  568. code generation.
  569. 2005-03-30 Lluis Sanchez Gual <[email protected]>
  570. * SerializationCodeGenerator.cs:
  571. * XmlSerializationReaderInterpreter.cs: If the element being read is
  572. bound to a choice member, set the corresponding value.
  573. * XmlTypeMapMember.cs: Added helper SetValue method.
  574. * XmlTypeMapElementInfo.cs: Changed the type of ChoiceValue to Object,
  575. since now stores the enum value.
  576. * XmlReflectionImporter.cs: Properly import choice values.
  577. * XmlTypeMapMemberElement.cs: Added setter for the choice.
  578. 2005-03-29 Lluis Sanchez Gual <[email protected]>
  579. * XmlReflectionImporter.cs: Added support for subclasses of XmlNode.
  580. This fixes bug #73901 and should fix #70384.
  581. * XmlSerializationReader.cs: When reading an object element, return
  582. an Object instance if the element has no children. This fixes bug #73974.
  583. * XmlSerializationWriter.cs: Support writing XmlNode[] as a primitive
  584. type (it is written as an element with those nodes as children).
  585. 2005-03-08 Lluis Sanchez Gual <[email protected]>
  586. * XmlSchemaImporter.cs: Support importing schemas that define
  587. extra types in the standard xml schema namespace. When using encoded
  588. format, support the primitive types defined by the SOAP encoding
  589. namespace.
  590. 2005-03-04 Lluis Sanchez Gual <[email protected]>
  591. * ReflectionHelper.cs: Avoid endless loop.
  592. * XmlSchemas.cs: Added null check. Patches from MainSoft.
  593. 2005-02-07 Lluis Sanchez Gual <[email protected]>
  594. * XmlSerializationReader.cs: After reading an href element, skip the
  595. whole element (it may not be an empty element). This fixes bug #72265.
  596. 2005-01-25 Lluis Sanchez Gual <[email protected]>
  597. * XmlSchemaImporter.cs: When importing a default value of type enum,
  598. translate it from the schema value to the clr value.
  599. 2005-01-18 Gonzalo Paniagua Javier <[email protected]>
  600. * XmlSerializer.cs: only print the results if there's an error
  601. compiling.
  602. 2005-01-18 Gonzalo Paniagua Javier <[email protected]>
  603. * SerializationCodeGenerator.cs: don't use _config if it has not been
  604. assigned.
  605. 2005-01-18 Lluis Sanchez Gual <[email protected]>
  606. * XmlReflectionImporter.cs: Don't check the property type if it has
  607. an [XmlIgnore] attribute. This fixes bug #71332.
  608. 2005-01-14 Atsushi Enomoto <[email protected]>
  609. * SerializationCodeGenerator.cs,
  610. XmlSerializationWriterInterpreter.cs : exchanged attribute
  611. serialization orders (XmlAnyAttribute <-> XmlNamespaceDeclarations).
  612. xmlns attributes in XmlAnyAttribute are not written.
  613. 2005-01-12 Atsushi Enomoto <[email protected]>
  614. * SerializationCodeGeneratorConfiguration.cs,
  615. SerializationCodeGenerator.cs : Added some generation configuration:
  616. <generateAsInternal>
  617. write custom reader/writer as internal classes.
  618. <noreader>, <nowriter>
  619. They make generation of reader and/or writer optional.
  620. * XmlSerializerNamespaces.cs :
  621. Now it uses ListDictionary instead of Hashtable.
  622. * XmlSerializationWriter.cs : entries in XmlSerializerNamespaces are
  623. written unless there is already the same prefix-ns mapping.
  624. 2005-01-12 Lluis Sanchez Gual <[email protected]>
  625. * XmlTypeMapElementInfo.cs: Added new IndexOfElement method.
  626. * XmlSchemaImporter.cs: When importing a base type of a complex type,
  627. make sure that the base class is always imported as a class and not
  628. as an array. If it has been imported as array, import it again.
  629. This fixes bug #70839. Other minor fixes as well.
  630. * XmlSerializationWriter.cs: Fixed warning.
  631. 2004-12-09 Lluis Sanchez Gual <[email protected]>
  632. * SerializationCodeGenerator.cs: Yet another generation fix.
  633. 2004-12-09 Lluis Sanchez Gual <[email protected]>
  634. * SerializationCodeGenerator.cs: Fixed generation of enum literals.
  635. 2004-12-09 Lluis Sanchez Gual <[email protected]>
  636. * XmlReflectionMember.cs: Added DeclaringType member.
  637. * XmlReflectionImporter.cs: When importing fields that belong to a
  638. base class, use the xml namespace of the base map for the member.
  639. This fixes bug #70309.
  640. 2004-11-30 Lluis Sanchez Gual <[email protected]>
  641. * XmlCodeExporter.cs, XmlSerializer.cs, XmlSchemaImporter.cs: Fixed some
  642. compilation warnings.
  643. 2004-11-24 Lluis Sanchez Gual <[email protected]>
  644. * SerializationSource.cs: Made SerializationSource abstract, and
  645. renamed Equals to BaseEquals to avoid missing GetHashCode warning
  646. (it does not really make sense in this case).
  647. * XmlSchemaExporter.cs, SerializationCodeGenerator.cs,
  648. XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
  649. XmlSerializationReader.cs: Fixed warnings.
  650. 2004-10-19 Atsushi Enomoto <[email protected]>
  651. * XmlSerializationWriter.cs : When namespace is an empty string,
  652. XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
  653. such case.
  654. 2004-10-01 Lluis Sanchez Gual <[email protected]>
  655. * MapCodeGenerator.cs: When the Object type is exported, export all
  656. derived maps. This was done in IncludeMetadata, but this method is
  657. not called by the xsd tool.
  658. * XmlCodeExporter.cs: In AddMappingMetadata, only generate the root
  659. attribute for primitive types and arrays.
  660. * XmlSchemaImporter.cs: Only export all object-derived maps if the
  661. Object type is explicitly referenced by an element.
  662. * XmlSerializationWriter.cs: Minor fix.
  663. 2004-09-28 Lluis Sanchez Gual <[email protected]>
  664. * CodeIdentifier.cs: MakeValid now returns "Item" for an empty string.
  665. This fixes bug #66877.
  666. 2004-09-21 Lluis Sanchez Gual <[email protected]>
  667. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  668. when reading a primitive value in encoded format using
  669. ReadReferencingElement, provide the type name and namespace
  670. since the xsi type may not be present in the xml element. This
  671. fixes bug #65929.
  672. 2004-09-15 Lluis Sanchez Gual <[email protected]>
  673. * MapCodeGenerator.cs: Moved generation of XmlInclude attributes from
  674. ExportDerivedTypes to the new ExportDerivedTypeAttributes method.
  675. * XmlReflectionImporter.cs: In ImportClassMapping, moved the call to
  676. ImportIncludedTypes to the end, to make sure that the current map has all
  677. needed data before derived maps are constructed.
  678. * XmlSchemaExporter.cs: Generate the base class of simple types that are
  679. not primitive types. Set the correct value for IsMixed in extended types.
  680. * XmlSchemaImporter.cs: In ImportSimpleContent, take into account that
  681. the base class of a simple type doesn't need to be a xsd type.
  682. All those patches fix bug #65654.
  683. 2004-09-03 Lluis Sanchez Gual <[email protected]>
  684. * XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
  685. Normalization==true by default.
  686. 2004-09-02 Lluis Sanchez Gual <[email protected]>
  687. * ReflectionHelper.cs, SoapReflectionImporter.cs, XmlReflectionImporter.cs:
  688. In CheckSerializableType, add the option of ignoring types with private
  689. constructors. Some kind of lists can be deserialized
  690. even if the constructor is private. See bug #61464.
  691. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  692. Before creating a list, check that it has a public constructor.
  693. * TypeData.cs: Added HasPublicConstructor property.
  694. 2004-09-01 Lluis Sanchez Gual <[email protected]>
  695. * SerializationCodeGenerator.cs: Generate correct "HasValue" check for
  696. value list serialization.
  697. * XmlSchemaImporter.cs: Added some null checks.
  698. 2004-08-25 Lluis Sanchez Gual <[email protected]>
  699. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  700. When deserializing an encoded method response, assign to the return value
  701. the first element of the message, whatever it is. The return type doesn't
  702. need to be Object, it seems to be true for all return types.
  703. 2004-07-26 Lluis Sanchez Gual <[email protected]>
  704. * MapCodeGenerator.cs: CreateFieldMember now adds the field to the class,
  705. no need to add it after the call.
  706. * SoapSchemaImporter.cs: Implemented 2.0 constructors.
  707. 2004-07-23 Lluis Sanchez Gual <[email protected]>
  708. * CodeGenerationOptions.cs: Made the class internal for the 1.1 profile.
  709. * ImportContext.cs: Implemented.
  710. * MapCodeGenerator.cs, SoapCodeExporter.cs, XmlCodeExporter.cs: Added new
  711. options for 2.0. Implemented support for generating properties instead of
  712. fields.
  713. * XmlSchemaImporter.cs: Added support for sharing types.
  714. 2004-07-15 Lluis Sanchez Gual <[email protected]>
  715. * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for base64. This
  716. xsd type is not part of the last schema specification, but the google api
  717. uses it and ms.net accepts it.
  718. 2004-07-12 Lluis Sanchez Gual <[email protected]>
  719. * ReflectionHelper.cs: Fixed bug when registering a map as exported.
  720. Thanks to Juan C. Olivares.
  721. 2004-07-10 Lluis Sanchez Gual <[email protected]>
  722. * CodeExporter.cs: Added private constructor.
  723. * CodeGenerationOptions.cs: Set the correct enum values.
  724. * CodeIdentifier.cs: Added private constructor.
  725. * SchemaImporter.cs: Added internal constructor.
  726. * XmlMapping.cs, XmlSerializer.cs: 2.0 api fix.
  727. * XmlMemberMapping.cs, XmlSchemaImporter.cs, XmlSerializationWriter.cs: Added 2.0 stubs.
  728. * XmlSchemaProviderAttribute.cs, XmlSerializerAssemblyAttribute.cs,
  729. XmlSerializerVersionAttribute.cs: Set correct attribute usage.
  730. * XmlSerializationReader.cs: Added missing setter for DecodeName.
  731. 2004-07-08 Lluis Sanchez Gual <[email protected]>
  732. * XmlSerializer.cs: Fix fix.
  733. 2004-07-08 Lluis Sanchez Gual <[email protected]>
  734. * IXmlSerializerImplementation.cs: Compile as internal in NET_1_1.
  735. * ReflectionHelper.cs: New method for generating map keys.
  736. * SerializationCodeGenerator.cs: Added support for generating the serializer
  737. contract class, needed for 2.0.
  738. * SerializationSource.cs: Use Type[] instead of ArrayList for storing
  739. extra types.
  740. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Assign extra types
  741. as Type[]. Added check that makes sure that enums being serialized are
  742. public.
  743. * XmlMapping.cs: Added internal GetKey method.
  744. * XmlSerializer.cs: Added support for IXmlSerializerImplementation.
  745. Added first bits to support loading of serializers from pre-generated
  746. assemblies.
  747. * XmlSerializerFactory.cs: Mostly implemeted.
  748. 2004-07-02 Lluis Sanchez Gual <[email protected]>
  749. * CodeIdentifier.cs: Removed constructor for NET_2_0.
  750. * SoapCodeExporter.cs, SoapSchemaImporter.cs, XmlCodeExporter.cs,
  751. XmlMapping.cs, XmlMemberMapping.cs, XmlReflectionImporter.cs,
  752. XmlSchemaExporter.cs, XmlSchemaImporter.cs, XmlSchemas.cs,
  753. XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs,
  754. XmlSerializerNamespaces.cs: Added 2.0 stubs.
  755. * XmlMembersMapping.cs, XmlTypeMapping.cs: 2.0 fixage.
  756. * IXmlTextParser.cs, CodeExporter.cs, CodeGenerationOptions.cs,
  757. ImportContext.cs, SchemaImporter.cs, SchemaImporterExtension.cs,
  758. SchemaImporterExtensionCollection.cs, XmlDeserializationEvents.cs,
  759. XmlSchemaProviderAttribute.cs, XmlSerializationGeneratedCode.cs,
  760. XmlSerializerAssemblyAttribute.cs, XmlSerializerFactory.cs,
  761. XmlSerializerVersionAttribute.cs: New files. More 2.0 stubs.
  762. 2004-07-02 Lluis Sanchez Gual <[email protected]>
  763. * SerializationCodeGenerator.cs: Generate check that the object being
  764. serialized has a known type. Little cast fix.
  765. * XmlCustomFormatter.cs: Little fix in Single conversion.
  766. 2004-07-01 Lluis Sanchez Gual <[email protected]>
  767. * TypeData.cs: In the constructor, set the correct xml type name if the
  768. type is an array (for example, instead of StringCollection, use
  769. ArrayOfString).
  770. 2004-06-22 Lluis Sanchez Gual <[email protected]>
  771. * ReflectionHelper.cs: Correctly detect private types.
  772. * XmlCodeExporter.cs: Implemented missing method.
  773. * XmlSchemaImporter.cs: Allow import of root primitive types.
  774. 2004-06-18 Atsushi Enomoto <[email protected]>
  775. * CodeIdentifier.cs, CodeIdentifiers.cs, MapCodeGenerator.cs,
  776. SerializationCodeGenerator.cs, SerializationSource.cs,
  777. TypeTranslator.cs, XmlAttributeOverrides.cs, XmlCustomFormatter.cs,
  778. XmlSerializationReader.cs, XmlSerializationWriter.cs,
  779. XmlSerializer.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs
  780. : Globalization fixes.
  781. In XmlCustomFormatter.GenerateToXmlString() time was not
  782. generated correctly.
  783. Replaced all CRLF XmlAttributeOverrides.cs into LF.
  784. 2004-06-13 Gert Driesen <[email protected]>
  785. * XmlSerializationWriter.cs: changed signature of protected method
  786. FromByteArrayBase64 to match MS.NET
  787. 2004-06-10 Lluis Sanchez Gual <[email protected]>
  788. * MapCodeGenerator.cs, SoapCodeExporter.cs: Generate the same XmlInclude
  789. attributes that MS.NET generates.
  790. * SerializationCodeGenerator.cs: Avoid duplicate generation of maps in the
  791. same reader/writer.
  792. * XmlCodeExporter.cs: Added support for ignore flag in maps and members.
  793. * XmlReflectionImporter.cs: Changed GetReflectionMembers to match
  794. MS.NET member ordering. Patch by David Taylor.
  795. * XmlSchemaImporter.cs: When generating a choice member, set the ignore
  796. flag. The generated enum must also not be included in the schema.
  797. * XmlTypeMapMember.cs: Added ignore flag.
  798. * XmlTypeMapping.cs: The AttributeMembers property now returns the
  799. attributes in the correct order.
  800. 2004-06-03 Gert Driesen <[email protected]>
  801. * XmlSerializationReader.cs: added missing protected members
  802. to fix API compatibility with MS.NET
  803. * XmlSerializationWriter.cs: added missing protected members
  804. to fix API compatibility with MS.NET
  805. 2004-06-02 Lluis Sanchez Gual <[email protected]>
  806. * XmlSerializationReader.cs: Support schamea instance namespaces other than
  807. the 2001 one when reading the xsi type.
  808. * MapCodeGenerator.cs: Take into account that the root namespace and element
  809. name may have changed from one export to another of the same type. In
  810. this case the class attributes need to be regenerated.
  811. * SoapCodeExporter.cs, XmlCodeExporter.cs: Take the enum name from XmlType,
  812. not ElementName. Idem for namespace.
  813. * XmlReflectionImporter.cs: Set nullable property of XmlTypeMapping.
  814. * XmlRootAttribute.cs: Default value for nullable is true.
  815. * XmlSchemaImporter.cs: The root name for a class may change in some
  816. scenarios (for example, when the type is initially exported as part of
  817. another type and later exported as a root type).
  818. * XmlSerializationReader.cs: In GetXsiType(), if the type attribute is not
  819. found using the standard namespace, try getting the type using
  820. the 2000/10 and 1999 namespaces.
  821. * XmlTypeMapping.cs: Added IsNullable property. Updated SetRoot method ;-)
  822. 2004-05-26 Lluis Sanchez Gual <[email protected]>
  823. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  824. In encoded format, primitive types can be null. Read them using
  825. ReadReferencingElement, that already checks for the null tag.
  826. 2004-05-25 Lluis Sanchez Gual <[email protected]>
  827. * XmlSerializationReader.cs: Check for empty element when reading an array
  828. element. This fixes bug #59003. Thanks Atsushi!
  829. 2004-05-07 Lluis Sanchez Gual <[email protected]>
  830. * XmlSerializationWriter.cs: Implemented some missing methods.
  831. In .NET 1.0, encoded null elements use the attribute null="1", while in
  832. 1.1 the attribute is nil="true".
  833. * XmlTypeMapping.cs: Little fix for nested classes.
  834. 2004-05-07 Lluis Sanchez Gual <[email protected]>
  835. * XmlReflectionImporter.cs: Don't reset the internal tables at every
  836. ImportMembersMapping call. This fixes bug #58112. The problem is that
  837. it imported two different arrays (only different in the array item
  838. namespace) with the same name. Not sure what was this Reset needed for,
  839. everyting seems to work without it.
  840. 2004-05-05 Lluis Sanchez Gual <[email protected]>
  841. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  842. When deserializing an encoded method response, if the return type of the
  843. method is Object, assign to it the first element of the message, whatever
  844. it is.
  845. * XmlSerializationReader.cs:
  846. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
  847. the imported member.
  848. * TypeTranslator.cs: Added method to safely get a primitive TypeData.
  849. * XmlSerializationReader.cs: Don't throw an exception when the CLR type for
  850. a given xsi type is not found. Just read it as primitive type.
  851. * XmlTypeMapMember.cs: Added IsReturnValue property.
  852. * XmlTypeMapping.cs: Added ReturnMember property.
  853. * XmlSerializer.cs: Reference System.Data when compiling the serializer.
  854. 2004-05-05 Lluis Sanchez Gual <[email protected]>
  855. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  856. When reading an object using the typeof(object) map, an emty xsi:type
  857. means that it has to read the contents into an XmlNode[].
  858. * TypeData.cs: Return the correct full name for inner classes.
  859. * XmlSchemaImporter.cs: Improved detection of types that represent
  860. "anyType", and must be mapped to XmlElement, XmlNode or Object.
  861. * XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
  862. the correct namespace.
  863. In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
  864. not known.
  865. 2004-05-05 Atsushi Enomoto <[email protected]>
  866. * XmlSerializationWriter.cs : It do not have to handle schema
  867. namespace as special one.
  868. 2004-05-03 Lluis Sanchez Gual <[email protected]>
  869. * XmlSerializationReaderInterpreter.cs: Removed the check for null
  870. AttributeMembers collection. Even if there are no attribute members,
  871. attributes need to be read.
  872. 2004-05-03 Lluis Sanchez Gual <[email protected]>
  873. * XmlSerializationReader.cs: In ReadSerializable(), take into account that
  874. the IXmlSerializable object may not read all the EndElement it read.
  875. This fixes bug #57413.
  876. 2004-05-03 Lluis Sanchez Gual <[email protected]>
  877. * XmlSerializer.cs: Enable serializer generation by default.
  878. 2004-04-20 Lluis Sanchez Gual <[email protected]>
  879. * TypeTranslator.cs: Mapped again anyUri, but now it is mapped to String.
  880. * XmlSchemaImporter.cs: If a map was initially imported as a class, but it
  881. turns out that it is an array, import it again as array. This fixes
  882. bug #57133.
  883. 2004-04-15 Lluis Sanchez Gual <[email protected]>
  884. * XmlSchemaExporter.cs: When checking if a map has been exported or not,
  885. don't use type name for array types, since we can have different classes
  886. that represent the same array type (for example StringCollection and
  887. string[]).
  888. 2004-04-14 Lluis Sanchez Gual <[email protected]>
  889. * TypeTranslator.cs, XmlCustomFormatter.cs: Removed map from Uri to anyUri,
  890. not present in MS.NET.
  891. * XmlSerializationWriter.cs: Improved error message.
  892. 2004-03-30 Lluis Sanchez Gual <[email protected]>
  893. * SerializationCodeGenerator.cs, XmlReflectionImporter.cs,
  894. XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs:
  895. Support deserialization of members of type XmlDocument. This fixes #56169.
  896. 2004-03-25 Lluis Sanchez Gual <[email protected]>
  897. * SerializationCodeGenerator.cs: Generate an integer for unknown enum values.
  898. Use a special method to generate default values, since default enum values
  899. will come as integers, so a special cast is needed.
  900. * XmlSerializationReaderInterpreter.cs,
  901. * SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
  902. SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs,
  903. SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
  904. XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs,
  905. XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
  906. XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
  907. XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
  908. XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
  909. of SerializationSource. It can't keep and use the XmlAttributeOverride
  910. instances as key values, since those instances can be modified after the
  911. xml map has been generated. Now, SerializationSource generates a unique
  912. string hash from XmlAttributeOverride and uses it for comparisons.
  913. 2004-03-24 Lluis Sanchez Gual <[email protected]>
  914. * SerializationCodeGenerator.cs: Several fixes: generate valid names for
  915. WriteRoot_ and ReadRoot_ methods. Cast result of ReadTypedPrimitive to
  916. the adequate type. Set the default value of members that do have a default
  917. value. Other minor fixes.
  918. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: All maps must derive
  919. from typeof(object) map, even those that have another base class.
  920. * XmlCustomFormatter.cs: Fixed generation of conversion from char to string.
  921. It must serialize the char as number, not as character.
  922. * XmlSerializationReaderInterpreter.cs: Set the default value of members
  923. that do have a default value.
  924. * XmlTypeMapping.cs: Added property MembersWithDefault, which returns a list
  925. of members that have a default value.
  926. 2004-03-15 Lluis Sanchez Gual <[email protected]>
  927. * XmlSchemaImporter.cs: Import IXmlSerializable types as DataSet, like in MS.NET.
  928. This fixes bug #55547.
  929. 2004-03-13 David Sheldon <[email protected]>
  930. * XmlSerializationWriter.cs: Implement WriteElementStringRaw with a
  931. byte [].
  932. 2004-03-13 David Sheldon <[email protected]>
  933. * XmlTextAttribute.cs: Initialise dataType with zero-length string.
  934. fixes test case that tests for this directly.
  935. * TypeTranslator.cs: Check for new zero-length dataType so we don't reject
  936. it. Treat it as null.
  937. 2004-03-12 Lluis Sanchez Gual <[email protected]>
  938. * CodeIdentifier.cs: Limit the length of identifiers.
  939. * MapCodeGenerator.cs: Do not generate base class if it is an XmlNode.
  940. Generate types using GetDomType, so if the type is an array, it creates
  941. the correct combination of types.
  942. * SerializationCodeGenerator.cs, XmlTypeMapping.cs: When trying to parse
  943. an enum, if the string is empty and the enum has [Flags], then return 0
  944. as value. This fixes bug #55509.
  945. * XmlSchemaImporter.cs: Added check for redefines of attribute groups. They
  946. are not supported. Another check: a simple type cannot be enum if it does
  947. not have any enum facet.
  948. And another fix: use string as default type for attribtues.
  949. * XmlSchemas.cs: Fixed search for schema elements. An schema may import
  950. other schemas. An imported schema would not be in the table, but its
  951. elements (although from another namespace) would be in the schema that
  952. imported it. So, we need know to check for every schema in the table.
  953. * XmlSerializer.cs: Added environment variable to help debugging code
  954. generator output.
  955. 2004-02-27 Lluis Sanchez Gual <[email protected]>
  956. * MapCodeGenerator.cs: Added IncludeMetadata property, which returns a list
  957. of XmlInclude attributes needed for the service class.
  958. IsMapExported: Removed check for object type, since it can now be exported.
  959. SetMapExported: Use the type name as key, since different importers may
  960. be used to create a map for the same type.
  961. GenerateClassInclude: Updated signature.
  962. * SoapCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
  963. GenerateClassInclude(): Updated signature.
  964. * SoapReflectionImporter.cs: Support SoapIncludeAttribute in array members.
  965. Implemented IncludeTypes.
  966. * XmlCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
  967. GenerateClassInclude(): Updated signature.
  968. * XmlMemberMapping.cs: Added missing property.
  969. * XmlReflectionImporter.cs: GetReflectionMembers must be private.
  970. Implemented IncludeTypes().
  971. * XmlSchemaExporter.cs: Added support for exporting typeof(object).
  972. * XmlSchemaImporter.cs: Changed the implementation of ImportDerivedTypeMapping.
  973. Now, it does a regular import and then assign the required base class to
  974. the imported map. In this way it is possible to assign a base type for a
  975. map that was previously imported without a base type.
  976. * XmlTypeMapping.cs: Added internal method SetRoot().
  977. 2004-02-24 Lluis Sanchez Gual <[email protected]>
  978. * SerializationCodeGenerator.cs: Added support for generation of readers
  979. and writers for several maps in a single class. Added support for
  980. XmlMemberMapping. Fixed generation of serializers that use encoded format.
  981. * SoapAttributeAttribute.cs, SoapAttributeOverrides.cs, SoapAttributes.cs,
  982. SoapElementAttribute.cs, SoapEnumAttribute.cs, SoapTypeAttribute.cs,
  983. XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs, XmlArrayAttribute.cs,
  984. XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, XmlAttributeAttribute.cs,
  985. XmlAttributeOverrides.cs, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs,
  986. XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs,
  987. XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs:
  988. Added InternalEquals method.
  989. * XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method.
  990. * SoapReflectionImporter.cs: Set SerializationSource to generated maps.
  991. * XmlCustomFormatter.cs: Fixed little bug.
  992. * XmlMapping.cs: Added Source property. This a global identifier of the map.
  993. * XmlReflectionImporter.cs: Set SerializationSource to generated maps.
  994. * XmlSchemaImporter.cs: Set the correct value for IsNillable when importing
  995. mapping members.
  996. * XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes.
  997. * XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not
  998. correctly used.
  999. * XmlSerializer.cs: Added support for generation of serializers.
  1000. 2004-02-18 Atsushi Enomoto <[email protected]>
  1001. * SerializationCodeGenerator.cs,
  1002. SerializationCodeGeneratorConfiguration.cs:
  1003. Added <namespaceImports> feature ("using XXX;" generation) support.
  1004. 2004-02-17 Lluis Sanchez Gual <[email protected]>
  1005. * XmlSerializationWriter.cs: When writing the root element, use a prefix
  1006. if the namespace of the element is defined in the list of namespaces
  1007. provided to the XmlSerializer. This fixes bug #54427.
  1008. 2004-02-16 Lluis Sanchez Gual <[email protected]>
  1009. * MapCodeGenerator.cs: Modified some methods to make them easier to reuse.
  1010. Those are basically methods to add custom attributes to element and
  1011. attribute members.
  1012. * SoapCodeExporter.cs: Track changes in MapCodeGenerator.
  1013. * XmlCodeExporter.cs: Better support for custom attribute generation for
  1014. method parameters.
  1015. * XmlCustomFormatter.cs: Added null check.
  1016. * XmlSchemaImporter.cs: do not set IsOptionalValueType property to
  1017. attributes that are required.
  1018. * XmlSerializationReaderInterpreter.cs: Method parameters may be serialized
  1019. as attributes.
  1020. 2004-02-11 Lluis Sanchez Gual <[email protected]>
  1021. * MapCodeGenerator.cs: Changed some methods to make them easier to reuse.
  1022. * TypeTranslator.cs: NMTOKENS, ENTITIES and IDREFS must be mapped to
  1023. string, not string[].
  1024. * XmlCodeExporter.cs: AddMappingMetadata(): improved attribute generation
  1025. for array parameters. In general, improved generation of schema Form
  1026. property.
  1027. * XmlMemberMapping.cs: Added Form property.
  1028. * XmlReflectionImporter.cs: Types that inherit from other types cannot be
  1029. simple types. Added a check for this.
  1030. * XmlSchemaExporter.cs: several fixes: better generation of IsMixed and
  1031. Form. The key used to determine if a map has been already generated must
  1032. include the XmlType, since there can be two xml types with the same CLR
  1033. type and namespace (for example, they may differ in the Form property).
  1034. * XmlSchemaImporter.cs: When getting the TypeData for a schema element,
  1035. also return the corresponding map. There can be two maps that have the
  1036. same TypeData, so given a TypeData is not always possible to get the
  1037. correct corresponding map (for example two arrays that only differ in the
  1038. Form of the item).
  1039. * XmlTypeMapping.cs: Added method to set if a map can represent a simple
  1040. type or not.
  1041. 2004-02-04 Lluis Sanchez Gual <[email protected]>
  1042. * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for the
  1043. normalizedString schema type.
  1044. 2004-02-04 Lluis Sanchez Gual <[email protected]>
  1045. * XmlReflectionImporter.cs: Get the class members using the right order.
  1046. * XmlSerializationWriterInterpreter.cs: Removed unneeded code.
  1047. A member with the Any attribute can also contain text. Support this.
  1048. * XmlTypeMapMemberElement.cs: Added CanBeText property.
  1049. 2004-01-27 Lluis Sanchez Gual <[email protected]>
  1050. * XmlSchemaImporter.cs: Redefinition of types are not supported. Added a
  1051. check.
  1052. 2004-01-27 Lluis Sanchez Gual <[email protected]>
  1053. * MapCodeGenerator.cs: Added helper method for generating an attribute
  1054. parameter of type enum.
  1055. * XmlAttributeAttribute.cs: little fix.
  1056. * XmlCodeExporter.cs: Support XmlAnyAttribute when generating attributes
  1057. for method parameters.
  1058. * XmlMemberMapping.cs: Improved support for members of type "any".
  1059. * XmlReflectionImporter.cs: Improved assignment of the attribute form.
  1060. If the namespace is explicitly specified, then the form should be
  1061. qualified. Also fixed issues with the namespace assigned to attributes.
  1062. This should fix bug #53384.
  1063. * XmlSchemaExporter.cs: ExportMembersMapping(): improved support for
  1064. methods that return values of type "any". Changed the methods
  1065. AddSchemaArrayElement and AddSchemaElement, so instead of adding the
  1066. element, return it, and the caller must add it to the collection.
  1067. Other fixes in attribute generation.
  1068. * XmlSchemaImporter.cs: ImportAnyType(): if a type name is provided,
  1069. generate the AnyType mapping from the type described in the schema.
  1070. Small fixes regarding IsMixed property of complex types (it means that
  1071. the type can contain text, so the XmlTextAttribute must be generated).
  1072. * XmlSerializationReaderInterpreter.cs: Reading of members by-order must
  1073. be only used in the bare+encoded format.
  1074. 2004-01-24 Lluis Sanchez Gual <[email protected]>
  1075. * SoapReflectionImporter.cs: Types included with SoapInclude don't need
  1076. to be derived types of the one that has the attribute.
  1077. * XmlReflectionImporter.cs: Recursively register the derived maps of a given
  1078. map to the parent map. This fixes #53246.
  1079. * XmlSerializationWriter.cs: Some fixes regarding empty namespaces.
  1080. 2004-01-22 Lluis Sanchez Gual <[email protected]>
  1081. * XmlSerializationReaderInterpreter.cs: When deserializing an XmlElement,
  1082. do not check the root element name, since it can be any name. This fixes
  1083. bug #53201.
  1084. 2004-01-20 Lluis Sanchez Gual <[email protected]>
  1085. * XmlReflectionImporter.cs: Throw exception if a value type member has the
  1086. IsNullable=true flag. This fixes bug #52906.
  1087. 2004-01-20 Lluis Sanchez Gual <[email protected]>
  1088. * MapCodeGenerator.cs, XmlSchemaImporter.cs: Attributes are allways optional,
  1089. so a 'specified' member has always to be generated.
  1090. * TypeData.cs: Fixed check for value type.
  1091. 2004-01-20 Lluis Sanchez Gual <[email protected]>
  1092. * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs,
  1093. XmlTypeMapMember.cs, MapCodeGenerator.cs, SoapCodeExporter.cs, TypeData.cs,
  1094. XmlCodeExporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs,
  1095. XmlSchemaImporter.cs, XmlSerializationReaderInterpreter.cs,
  1096. XmlSerializationWriterInterpreter.cs, XmlTypeMapMember.cs:
  1097. Added support for value specifiers members. This fixes bug #53024.
  1098. 2004-01-20 Lluis Sanchez Gual <[email protected]>
  1099. * XmlSchemaExporter.cs: Don't create referenced element if it has already
  1100. been created (two types could be referencing the same schema element).
  1101. 2004-01-19 Lluis Sanchez Gual <[email protected]>
  1102. * XmlReflectionImporter.cs: Read IsNullable flag from XmlArrayAttribute.
  1103. * XmlSerializationWriterInterpreter.cs: Interpret IsNullable flag for
  1104. arrays. This fixes bug #53018.
  1105. 2004-01-14 Lluis Sanchez Gual <[email protected]>
  1106. * MapCodeGenerator.cs: Use type namespace instead of root namespace as
  1107. default namespace for members.
  1108. * XmlCodeExporter.cs: Fixed generation of XmlRootAttribute.
  1109. * XmlReflectionImporter.cs: Fixed the assignment of root and type
  1110. namespaces.
  1111. * XmlSchemaExporter.cs: Use type namespace instead of root namespace as
  1112. default namespace for members. In AddSchemaElement, if the element is
  1113. a root element never use a "ref" attribute.
  1114. * XmlSchemaImporter.cs: Fixed issue when importing root elements.
  1115. 2004-01-13 Lluis Sanchez Gual <[email protected]>
  1116. * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
  1117. XmlTypeMapping.cs: more namespace fixes.
  1118. 2004-01-13 Lluis Sanchez Gual <[email protected]>
  1119. * XmlReflectionImporter.cs: type namespace must never be used as root
  1120. namespace. This fixes bug #52772.
  1121. 2004-01-08 Nick Drochak <[email protected]>
  1122. * XmlSchemaImporter.cs: Removed unused variable.
  1123. 2004-01-07 Lluis Sanchez Gual <[email protected]>
  1124. * XmlReflectionImporter.cs: Ignore Namespace property when applying
  1125. the [XmlType] attribute to an enum. This fixes bug #52607.
  1126. 2003-12-19 Lluis Sanchez Gual <[email protected]>
  1127. * SerializationCodeGenerator.cs, XmlReflectionImporter.cs: Added internal
  1128. option that allow serialization of private types.
  1129. 2003-12-18 Eran Domb <[email protected]>
  1130. * TypeTranslator.cs : Change primtive types map.
  1131. 2003-12-18 Eran Domb <[email protected]>
  1132. * XmlReflectionImporter.cs (ImportListMapping): Adding the included types of the list as a derived
  1133. classes of object.
  1134. 2003-12-15 Lluis Sanchez Gual <[email protected]>
  1135. * XmlSchemaExporter.cs: AddSchemaElement, use XmlTypeMapElementInfo.IsPrimitive
  1136. to check if a type is primitive, instead of Type.IsPrimitive, since CLR
  1137. primitive types are not the same as XML primitive types. Patch proposed
  1138. by Mordechai Taitelman. This fixes bug #52228.
  1139. * XmlSerializationWriter.cs: Fixes in WriteNullTagEncoded and WriteNullTagLiteral.
  1140. 2003-12-15 Lluis Sanchez Gual <[email protected]>
  1141. * XmlReflectionImporter.cs: Little fix.
  1142. 2003-12-15 Lluis Sanchez Gual <[email protected]>
  1143. * XmlReflectionImporter.cs: Type specified with XmlIncludeAttribute don't
  1144. need to be derived types of the includer. This fixes bug #52152.
  1145. Added null check for Name property of XmlEnumAttribute. This fixes
  1146. bug #52155.
  1147. * XmlSerializationReader.cs: Fixed some error messages.
  1148. * XmlSerializationReaderInterpreter.cs: Check that the root element has
  1149. the correct local name and namespace. This fixes bug #52038.
  1150. Throw exception if enum value can't be parsed.
  1151. * XmlTypeMapping.cs: Don't try to parse numeric enum values. This fixes
  1152. bug #52041.
  1153. 2003-12-12 Lluis Sanchez Gual <[email protected]>
  1154. * MapCodeGenerator.cs: Added support for [Flags] enum.
  1155. * XmlCodeExporter.cs: Do not add XmlElement attributes if the member is Any.
  1156. * XmlSchemaImporter.cs: Implemented ImportAnyType(). Improved import of
  1157. encoded array type. Added support for enums with [Flags].
  1158. In encoded format, unqualified types are schema types by default.
  1159. 2003-12-11 Lluis Sanchez Gual <[email protected]>
  1160. * XmlCodeExporter.cs: Little fix.
  1161. * XmlSchemaExporter.cs: In rpc format, make sure that parameters with the
  1162. same name have the same type.
  1163. * XmlSchemaImporter.cs: Support xml:lang.
  1164. * XmlSerializationReader.cs, XmlSerializationWriterInterpreter.cs:
  1165. fixed wrong namespace for the arrayType attribute.
  1166. 2003-12-08 Lluis Sanchez Gual <[email protected]>
  1167. * SoapReflectionImporter.cs, XmlMembersMapping.cs, XmlReflectionImporter.cs,
  1168. XmlSchemaImporter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
  1169. When using rpc format on a web service, members don't need to have any
  1170. specific namespace. Added a flag for turning namespace check on/off.
  1171. 2003-11-27 Lluis Sanchez Gual <[email protected]>
  1172. * XmlSerializationReader.cs: Generate identifiers for arrays user a counter.
  1173. delayedListFixups.Count cannot be used because elementes from
  1174. delayedListFixups are deleted sometimes.
  1175. 2003-11-27 Lluis Sanchez Gual <[email protected]>
  1176. * XmlReflectionImporter.cs: Indexer properties must not be serialized.
  1177. This fixes bug #51060.
  1178. 2003-11-24 Lluis Sanchez Gual <[email protected]>
  1179. * XmlSerializationWriterInterpreter.cs: Applied patch by Eran Domb:
  1180. If type is Enum the code use type.GetElememtType() instead of
  1181. Enum.GetUnderlyingType().
  1182. 2003-11-12 Lluis Sanchez Gual <[email protected]>
  1183. * XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs:
  1184. Removed several TODOs already done.
  1185. 2003-11-03 Lluis Sanchez Gual <[email protected]>
  1186. * XmlCustomFormatter.cs: Added support for anyUri type. This fixes
  1187. bug #50041.
  1188. 2003-10-20 Lluis Sanchez Gual <[email protected]>
  1189. * ReflectionHelper.cs: In CheckSerializableType() check that the type
  1190. is public.
  1191. * XmlSerializationWriter.cs: Added check for circular references.
  1192. This fixes bug #49879.
  1193. 2003-10-20 Lluis Sanchez Gual <[email protected]>
  1194. * ReflectionHelper.cs: Added check in CheckSerializableType(). Interfaces
  1195. can't be serialized. This fixes bug #49878.
  1196. * TypeData.cs: In ListItemType check that the collection has a valid
  1197. Add method and report an error if not.
  1198. * XmlReflectionImporter.cs: Added CheckSerializableType check call when
  1199. reflecting a collection.
  1200. 2003-10-18 Lluis Sanchez Gual <[email protected]>
  1201. * SoapReflectionImporter.cs: Support element references for enum values in
  1202. encoding format. This fixes bug #49568.
  1203. * XmlSerializationReaderInterpreter.cs: In encoded format, do not check
  1204. the name and namespace of the wrapper element. MS.NET doesn't do it.
  1205. This fixes bug #49729.
  1206. 2003-10-15 Lluis Sanchez Gual <[email protected]>
  1207. * MapCodeGenerator.cs: Made MapCodeGenerator internal.
  1208. 2003-10-15 Lluis Sanchez Gual <[email protected]>
  1209. * MapCodeGenerator.cs: New file. Moved here all code that is common
  1210. between XmlCodeExporter and SoapCodeExporter.
  1211. * SoapCodeExporter.cs: Implemented.
  1212. * XmlCodeExporter.cs: Moved common code to MapCodeGenerator.
  1213. * XmlSerializationReaderInterpreter.cs: Fixed problem when reading
  1214. encoded bare parameter list.
  1215. * XmlTypeMapping.cs: Added method for getting member element by index.
  1216. 2003-10-14 Atsushi Enomoto <[email protected]>
  1217. * XmlSchemas.cs : Implemented IsDataSet().
  1218. 2003-10-13 Lluis Sanchez Gual <[email protected]>
  1219. * SoapCodeExporter.cs: Initial implementation of AddMappingMetadata().
  1220. * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaImporter.cs:
  1221. in ImportMembersMapping, set pass the namespace to each XmlMemberMapping.
  1222. * SoapSchemaExporter.cs: Some fixes in ExportMembersMapping.
  1223. * XmlMemberMapping.cs: Fixed constructor. Now it takes the default namespace
  1224. and whether it uses encoded or literal format.
  1225. * XmlSchemaExporter.cs: Little fixes.
  1226. 2003-10-10 Lluis Sanchez Gual <[email protected]>
  1227. * XmlSerializationReader.cs. Fixed bug #49510. An array element doesn't
  1228. need to be of type SOAP-ENC:Array, it can be a restriction of it.
  1229. 2003-10-10 Lluis Sanchez Gual <[email protected]>
  1230. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed bug #49476.
  1231. Read only properties are only serialized if the type is an array.
  1232. 2003-10-09 Lluis Sanchez Gual <[email protected]>
  1233. * SoapReflectionImporter.cs, XmlReflectionImporter.cs,
  1234. SoapReflectionImporter.cs: Fixed bug #94694. Check for public constructor
  1235. is not needed for value types.
  1236. 2003-10-08 Lluis Sanchez Gual <[email protected]>
  1237. * XmlSerializer.cs, XmlSerializationWriter.cs: Fixed bug #49353
  1238. (XmlSerializer.Serialize() handles namespace parameter incorrectly)
  1239. 2003-10-05 Lluis Sanchez Gual <[email protected]>
  1240. * XmlReflectionImporter.cs, SoapReflectionImporter.cs: Fixed bug #49349
  1241. 2003-10-04 Lluis Sanchez Gual <[email protected]>
  1242. * XmlSchemaExporter.cs: Keep track of elements being exported.
  1243. * XmlSchemas.cs: Removed unneeded catch.
  1244. 2003-10-01 Lluis Sanchez Gual <[email protected]>
  1245. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  1246. Fixed handling of members with XmlTextAttribute that are arrays.
  1247. * TypeData.cs: IsComplexType now returns true for XmlNode.
  1248. * XmlSerializer.cs: Added check for null mapping in FromMappings.
  1249. * XmlTypeMapping.cs: Added helper method FindTextElement.
  1250. 2003-09-28 Lluis Sanchez Gual <[email protected]>
  1251. * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs:
  1252. Added support for IncludeInSchema flag.
  1253. * SoapSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
  1254. * XmlCodeExporter.cs: Implemented AddMappingMetadata and AddMappingMetadata
  1255. methods. Added support for IncludeInSchema flag.
  1256. * XmlSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
  1257. Added support for IncludeInSchema flag.
  1258. * XmlTypeAttribute.cs: Set includeInSchema to true by default.
  1259. * XmlTypeMapping.cs: Added IncludeInSchema property.
  1260. 2003-09-25 Lluis Sanchez Gual <[email protected]>
  1261. * SoapIncludeAttribute.cs: Added AllowMultiple option. This fixes bug #48877.
  1262. 2003-09-14 Lluis Sanchez Gual <[email protected]>
  1263. * XmlCustomFormatter.cs: added support for additional string types in
  1264. GenerateToXmlString().
  1265. * XmlSchemaExporter.cs: Fixed generation of XmlMembersMapping using
  1266. encoded format.
  1267. 2003-09-11 Lluis Sanchez Gual <[email protected]>
  1268. * SoapSchemaImporter.cs: implemented.
  1269. * XmlReflectionImporter.cs: Changed nullable default for array items to true.
  1270. * XmlSchemaExporter.cs: Some fixes in the generation of encoded format schema.
  1271. * XmlSchemaImporter.cs: more support for encoded format.
  1272. 2003-09-04 Lluis Sanchez Gual <[email protected]>
  1273. * SerializationCodeGenerator.cs: Minor fixes.
  1274. * SoapReflectionImporter.cs: More fixes.
  1275. * SoapSchemaExporter.cs: implemented.
  1276. * SoapSchemaImporter.cs: Initial implementation.
  1277. * TypeTranslator.cs: new methods for dealing with encoded arrays: GetArrayName
  1278. and ParseArrayType
  1279. * XmlCodeExporter.cs: Fix. When exporting a map, export all derived maps.
  1280. * XmlMemberMapping.cs: Minor fixes.
  1281. * XmlMembersMapping.cs: added some convenient constructors.
  1282. * XmlSchemaExporter.cs: Added support for encoded format.
  1283. * XmlSchemaImporter.cs: Added support for encoded format.
  1284. * XmlSerializationReader.cs: changed some string literals by constants.
  1285. Implemented ParseWsdlArrayType.
  1286. * XmlSerializationReaderInterpreter.cs: Read typeArray attribute when serializing
  1287. custom attributes.
  1288. * XmlSerializationWriter.cs: Implemented WriteXmlAttribute.
  1289. * XmlSerializationWriterInterpreter.cs: Use WriteXmlAttribute instead of
  1290. WriteAttribute to write custom attributes.
  1291. * XmlSerializer.cs: added some namespace constants.
  1292. * XmlTypeMapping.cs: added GetSchemaArrayName method.
  1293. 2003-09-01 Lluis Sanchez Gual <[email protected]>
  1294. * XmlSchemaImporter.cs: Implemented ImportMembersMapping.
  1295. * XmlTypeMapMemberElement.cs: Little fix.
  1296. * XmlTypeMapping.cs: Added AllElementInfos property in ClassMap.
  1297. * XmlCustomFormatter.cs: Added GenerateToXmlString and GenerateFromXmlString
  1298. methods.
  1299. * SerializationCodeGenerator.cs, SerializationCodeGeneratorConfiguration.cs:
  1300. Added.
  1301. 2003-08-29 Lluis Sanchez Gual <[email protected]>
  1302. * SoapReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
  1303. * XmlMemberMapping.cs: Changed constructor.
  1304. * XmlReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
  1305. * XmlSchemaImporter.cs: Implemented ImportMembersMapping().
  1306. * XmlSerializationReaderInterpreter.cs: Added some helper methods. Changed visibility.
  1307. * XmlSerializationWriterInterpreter.cs: Changed visibility.
  1308. 2003-08-28 Lluis Sanchez Gual <[email protected]>
  1309. * XmlSerializer.cs: Fix in Deserialize() method.
  1310. 2003-08-28 Lluis Sanchez Gual <[email protected]>
  1311. * XmlReflectionImporter.cs: Fill RelatedMaps property of the generated map.
  1312. * XmlSchemas.cs: Find method: make sure the returned object belongs to
  1313. the requested type.
  1314. * XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
  1315. Add null checks for eventSource.
  1316. * XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
  1317. * XmlSerializationWriter.cs: In Initialize method, initialize the provided
  1318. namespece declarations. Virtual method WriteObject not needed any more.
  1319. In WriteStartElement, write the provided namespaces.
  1320. * XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
  1321. Added GetTypeMap method, that returns the map for a given type. Added some
  1322. virtual methods, so writer behavior can be extended at several places by
  1323. derived classes.
  1324. * XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
  1325. methods CreateReader and CreateWriter are not called unless no type or
  1326. type mapping was provided in the constructor.
  1327. 2003-08-12 Lluis Sanchez Gual <[email protected]>
  1328. * XmlSchemaImporter.cs: ImportTypeMapping doesn't need to check if the
  1329. schema type it is importing is a class or an array. It will always
  1330. be a class.
  1331. 2003-08-12 Lluis Sanchez Gual <[email protected]>
  1332. * XmlSerializationWriterInterpreter.cs: any element members can be serialized
  1333. as text nodes. Support it.
  1334. 2003-08-05 Lluis Sanchez Gual <[email protected]>
  1335. * CodeIdentifier.cs: Fixed MakeValid method.
  1336. * TypeTranslator.cs: Added support for more primitive types. Added
  1337. GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
  1338. maps by default.
  1339. * XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
  1340. are different from the type ns and name.
  1341. Generate class and field comments.
  1342. Fixed default attribute generation. In elements with ref attribute, it has to be
  1343. generated in the referred attribute.
  1344. * XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
  1345. Added suport for text nodes in members of type "any".
  1346. * XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
  1347. content.
  1348. * XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
  1349. * XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
  1350. that have already been declared.
  1351. WriteStartElement(): elements from schema namespace are always written with ns prefix.
  1352. * XmlTypeMapMember.cs: Added documentation property.
  1353. * XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
  1354. represents a simple type.
  1355. 2003-08-05 Lluis Sanchez Gual <[email protected]>
  1356. * XmlSchemaImporter.cs: Implemented ImportTypeMapping and all needed parsing
  1357. stuff.
  1358. * SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
  1359. * TypeData.cs: Added property that returns a TypeData that represents an array of
  1360. the given TypeData.
  1361. * TypeTranslator.cs: Added GetArrayName() method.
  1362. Added TypeDatas for missing primitive types.
  1363. * XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
  1364. XmlRootAttribute. Added the namespace to all attributes being generated.
  1365. Other fixes in the generation of code.
  1366. * XmlReflectionImporter: store the namespace of the type in the maps.
  1367. * XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
  1368. class can generate text. Do not export inherited attributes of a class.
  1369. Use the new root namespace stored in the map when generating the root element.
  1370. * XmlSerializationWriter: Always write a prefix when writing a qname, even if the
  1371. namespace is the default namespace.
  1372. * XmlSerializationWriterInterpreter.cs: fixed missing "else".
  1373. * XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
  1374. namespace instead of the map namespace (which can be different if the type
  1375. has a XmlRoot element).
  1376. * XmlTypeMapMember.cs: Set the default value of the DefaultValue property
  1377. to System.DBNull.Value.
  1378. * XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
  1379. the collection if it has not yet been created.
  1380. * XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
  1381. of the type. It may be different from the namespace of the map if the type
  1382. has a XmlRoot element. Also added IsSimpleType property.
  1383. In ClassMap, added AllMembers property.
  1384. 2003-07-30 Lluis Sanchez Gual <[email protected]>
  1385. * TypeData.cs: Added new constructor and variables to allow the creation of
  1386. a TypeData without a Type. Added ListItemTypeData property.
  1387. * XmlTypeMapping.cs: Added property for checking if a ListMap represents an
  1388. array of arrays. Added also a property to get the nested array map.
  1389. * XmlCodeExporter.cs: First implementation of code exporter.
  1390. 2003-07-22 Lluis Sanchez Gual <[email protected]>
  1391. * TypeTranslator.cs: Added new primitive types: NMTOKEN and NCName.
  1392. * XmlSerializationWriterInterpreter.cs: Write XmlAttributes with the prefix
  1393. they have.
  1394. 2003-07-15 Lluis Sanchez Gual <[email protected]>
  1395. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Avoid generating two
  1396. maps with the same name and namespace. To avoid this, maps must be registered
  1397. using the real map namespace, not the default namespace (the namespace can
  1398. change if the type has a XmlType or SoapType attribute).
  1399. * XmlArrayItemAttribute.cs: Set IsNullable to true by default.
  1400. * XmlSchemaExporter.cs: Implemented method ExportMembersMapping.
  1401. Other small fixes.
  1402. * XmlSerializationWriterInterpreter.cs: GetStringValue: return null if the value
  1403. is null.
  1404. 2003-07-14 Lluis Sanchez Gual <[email protected]>
  1405. * SoapReflectionImporter.cs: Set the BaseMap property of map. Small fix.
  1406. * TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
  1407. * XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
  1408. * XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
  1409. * XmlSchemaExporter.cs: Implemented.
  1410. * XmlSchemas.cs: Support schemas with TargetNamespace set to null.
  1411. * XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
  1412. GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
  1413. * XmlSerializationWriterInterpreter.cs: Fixed management of default values.
  1414. GetStringValue() returns null if the value is null, instead of empty string.
  1415. (attributes with null values are not written).
  1416. * XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
  1417. * XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
  1418. DataType value can is now in TypeData.
  1419. * XmlTypeMapMemberElement.cs: Small fix.
  1420. * XmlTypeMapping.cs: Added FindMember method and BaseMap property.
  1421. 2003-07-14 Andreas Nahr <[email protected]>
  1422. * AssemblyInfo.cs: Removed
  1423. 2003-07-9 Lluis Sanchez Gual <[email protected]>
  1424. * XmlSerializationWriter.cs: WriteStartElement(): Do not write xsd and xsi
  1425. namespace declarations if they have already been defined.
  1426. 2003-07-2 Lluis Sanchez Gual <[email protected]>
  1427. * XmlSerializationReaderInterpreter.cs: Use the parameter type when getting the Add method
  1428. for adding elements to a list.
  1429. 2003-06-31 Lluis Sanchez Gual <[email protected]>
  1430. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed so XmlIncludeAttribute and
  1431. SoapIncludeAttribute are now transitive (if class A includes class B, and B includes C, then
  1432. A includes C).
  1433. 2003-06-30 Lluis Sanchez Gual <[email protected]>
  1434. * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlTypeMapping.cs:
  1435. Added support for serialization of enums with the Flags attribute.
  1436. 2003-06-30 Lluis Sanchez Gual <[email protected]>
  1437. * SoapReflectionImporter.cs: Fix support for DataType in class members.
  1438. * TypeData.cs: Don't use "Index" name to get indexer property. Indexer properties
  1439. can have other names.
  1440. * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for "time" and "data" xml types.
  1441. * XmlReflectionImporter.cs, XmlTypeMapElementInfo.cs, XmlSerializationReader.cs,
  1442. XmlSerializationWriter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
  1443. Fix support for DataType in class members.
  1444. * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs:
  1445. Added support for array of primitive types in attributes.
  1446. 2003-06-28 Lluis Sanchez Gual <[email protected]>
  1447. * TypeData.cs: Type of item of ICollections is now taken from the Item(int) property. Add() can
  1448. be overlodaded, so it is not good for this.
  1449. * XmlSerializationWriterInterpreter.cs: Fix ambiguity bug when getting Item property of a collection.
  1450. 2003-06-24 Lluis Sanchez Gual <[email protected]>
  1451. * XmlTypeMapElementInfo.cs: no need to compare nesting level in Equals.
  1452. * XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
  1453. array if the namespace is not specified in XmlArrayItemAttribute.
  1454. 2003-06-17 Lluis Sanchez Gual <[email protected]>
  1455. * XmlReflectionImporter.cs: Reset internal tables for each ImportMembersMapping call.
  1456. * XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
  1457. is not specified in the xsi attribute.
  1458. * XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
  1459. * XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
  1460. 2003-06-16 Atsushi Enomoto <[email protected]>
  1461. * XmlSerializationReader.cs : Synchronous fix with
  1462. XmlElement.GetAttribute(name, ns) fix for GetNullAttr().
  1463. * added XmlTypeMapMemberNamespace.cs.
  1464. * XmlReflectionImporter,
  1465. XmlSerializationReaderInterpreter.cs,
  1466. XmlSerializationWriterInterpreter.cs,
  1467. XmlTypeMapping.cs : support for XmlNamespaceDeclarationAttribute.
  1468. 2003-06-16 Atsushi Enomoto <[email protected]>
  1469. * XmlSerializationWriter.cs : some QName handling fix.
  1470. 2003-06-13 Lluis Sanchez Gual <[email protected]>
  1471. * XmlSerializationReader.cs: Fixed error message.
  1472. * XmlSerializationReaderInterpreter.cs: Fixed bug when reading XmlQualifiedNames as attributes
  1473. Thanks to Atsushi!
  1474. * XmlSerializationWriter.cs: Null check in FromXmlQualifiedName.
  1475. 2003-06-13 Lluis Sanchez Gual <[email protected]>
  1476. * XmlSerializationReader.cs: Fixed implementation of ReadElementQualifiedName() and ReadTypedPrimitive().
  1477. * XmlSerializationReaderInterpreter.cs: Improved serialization of XmlQualifiedNames.
  1478. * XmlSerializationWriter.cs: implemented methods for reading XmlQualifiedNames.
  1479. * XmlSerializationWriterInterpreter.cs: Improved deserialization of XmlQualifiedNames.
  1480. 2003-06-13 Lluis Sanchez Gual <[email protected]>
  1481. * SchemaTypes.cs: Changed DataSet type for a more generic XmlSerializable.
  1482. * SoapReflectionImporter.cs: tiny fix.
  1483. * XmlReflectionImporter.cs, TypeData.cs, XmlSerializationWriterInterpreter.cs,
  1484. XmlSerializationReaderInterpreter.cs: Added support for IXmlSerializable.
  1485. * XmlSerializationReader.cs: Fixed implementation of ReadSerializable().
  1486. * XmlSerializationWriter.cs: implemented WriteSerializable ().
  1487. 2003-06-12 Lluis Sanchez Gual <[email protected]>
  1488. * XmlAnyElementAttribute.cs, XmlArrayItemAttribute.cs: Added AllowMultiple flag.
  1489. * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
  1490. XmlSerializationReaderInterpreter.cs, XmlTypeMapElementInfo.cs,
  1491. XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added support for XmlTextAttribute.
  1492. * XmlSerializationWriter.cs: small fix.
  1493. 2003-06-11 Lluis Sanchez Gual <[email protected]>
  1494. * XmlReflectionImporter.cs: Added support for XmlIgnoreAttribute in enum members.
  1495. Added support for DefaultValueAttribute.
  1496. * XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
  1497. the value of an enum.
  1498. * XmlTypeMapMember.cs: Added DefaultValue attribute.
  1499. * XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
  1500. integer values.
  1501. 2003-06-11 Lluis Sanchez Gual <[email protected]>
  1502. * XmlSerializationReader.cs: Minor fix.
  1503. 2003-06-11 Lluis Sanchez Gual <[email protected]>
  1504. * XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs: Minor fixes.
  1505. 2003-06-10 Lluis Sanchez Gual <[email protected]>
  1506. * SoapReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
  1507. * XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
  1508. * XmlCustomFormatter.cs: small fixes.
  1509. * XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
  1510. * XmlSerializationWriter.cs: Implemented TopLevelElement().
  1511. WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
  1512. WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
  1513. * XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
  1514. root elements.
  1515. 2003-06-05 Lluis Sanchez Gual <[email protected]>
  1516. * SoapReflectionImporter.cs: implemented.
  1517. * TypeTranslator.cs: added IsPrimitive() method
  1518. * TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
  1519. used by that one. Also added Format property, that can be literal or encoded.
  1520. * XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
  1521. * XmlReflectionMember.cs: added constructor that accepts SoapAttributes
  1522. * XmlSerializationReader.cs: implemented many methods needed to support encoded format.
  1523. * XmlSerializationReaderInterpreter.cs: added support for encoded format.
  1524. * XmlSerializationWriter.cs: added support for encoded format.
  1525. * XmlSerializationWriterInterpreter.cs: added support for encoded format.
  1526. * XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
  1527. * XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
  1528. and a map is needed for them).
  1529. * XmlTypeMapMemberElement.cs: small fixes.
  1530. * XmlTypeMapping.cs: added some properties and methods needed to support encoded format
  1531. * ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
  1532. 2003-06-01 Miguel de Icaza <[email protected]>
  1533. * XmlSerializationReader.cs (UnknownAttribute, UnknownNode,
  1534. UnknownElement): Add line number information.
  1535. 2003-05-29 Lluis Sanchez Gual <[email protected]>
  1536. * TypeData.cs, TypeTranslator.cs: Renamed some properties.
  1537. * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
  1538. * XmlMapping.cs: Added internal property.
  1539. * XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
  1540. * XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
  1541. * XmlReflectionMember.cs: XmlAttributes are now created by default
  1542. * XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
  1543. * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs:
  1544. Implemented support for XmlMembersMapping.
  1545. * XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
  1546. 2003-05-28 Lluis Sanchez Gual <[email protected]>
  1547. * TypeData.cs, TypeTranslator.cs: Added support for enums. Added method for translating
  1548. from xml type to clr type.
  1549. * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
  1550. * XmlReflectionMember.cs: Added default constructor.
  1551. * XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
  1552. * XmlSerializationWriter.cs: Several fixes.
  1553. * XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
  1554. XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
  1555. Added support for enums. Added support for XmlElement and XmlNode.
  1556. Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
  1557. 2003-05-26 Lluis Sanchez Gual <[email protected]>
  1558. * TypeData.cs, TypeTranslator.cs: Implemented some methods.
  1559. * XmlCustomFormatter.cs: Added formatting methods.
  1560. * XmlReflectionImporter.cs, XmlSerializer.cs: New implementation.
  1561. * XmlReflectionMember.cs: Added new constructor.
  1562. * XmlSerializationReader.cs, XmlSerializationWriter.cs: Implemented some methods.
  1563. * XmlSerializationWriterInterpreter.cs, XmlSerializationReaderInterpreter.cs
  1564. XmlTypeMapElementInfo.cs, XmlTypeMapMember.cs, XmlTypeMapMemberAttribute.cs
  1565. XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added
  1566. 2003-05-10 Atsushi Enomoto <[email protected]>
  1567. * Added TypeTableEntry.cs.
  1568. * TypeTranslator.cs : changed for non-static use.
  1569. * XmlAttributes.cs : XmlType attribute support for GetAttributeName()
  1570. and GetElementName(). Bugfix so that if any XmlElementAttribute
  1571. exists after non-typed XmlElementAttribute then it might be ignored.
  1572. Added GetElementIsNullable().
  1573. * XmlSerializer.cs :
  1574. Introduced TypeTablePool and TypeTableEntry and erased ambiguous
  1575. Object memberObj[4].
  1576. Deserialize() now uses XmlReader.Depth to check its depth.
  1577. Serialize() for non-XmlReader arguments now always write xmldecl.
  1578. SerializeBuiltin() now explicitly requires Type to support xsi:nil,
  1579. and handles XmlQualifiedName.
  1580. Separated SerializeType () from Serialize().
  1581. Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
  1582. IsPropertyTypeSerializable() from SerializeMembers().
  1583. SerializeMembers() is now capable of null value and actual type,
  1584. which should be included by XmlIncludeAttribute and so on.
  1585. Renamed SerializeArray() to SerializeArrayContent(), and added
  1586. SerializeCollectionContent().
  1587. SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
  1588. FillTypeTable() is now aware of XmlInclude attributes.
  1589. FillEnum() should not have different type table content from others.
  1590. 2003-05-09 Atsushi Enomoto <[email protected]>
  1591. * XmlSerializer.cs : this time, only replaced spaces with tabs.
  1592. 2003-05-05 Atsushi Enomoto <[email protected]>
  1593. * ChangeLog : Added missing ChangeLog of 2003-04-25.
  1594. * XmlCustomFormatter.cs : Fixed FromXmlNmTokens() to contain
  1595. separators. Added experimental method ToEnum().
  1596. * XmlSerializationReader.cs : unconfirmed implementation of
  1597. ReadSerializable() and ToEnum().
  1598. * XmlSerializationWriter.cs : fixed WriteAttribute() so that if value
  1599. is null then no output will be written.
  1600. Fixed WriteStartElement(), WriteElement*() and WriteEmptyTag()
  1601. to use custom formatted name.
  1602. 2003-05-02 Miguel de Icaza <[email protected]>
  1603. * XmlReflectionImporter.cs: one of theImportTypeMapping mappings
  1604. had a void return value.
  1605. 2003-04-26 Miguel de Icaza <[email protected]>
  1606. * XmlIncludeAttribute.cs: Make XmlIncludeAttribute have the
  1607. `AllowMultiple' flags.
  1608. 2003-04-25 Atsushi Enomoto <[email protected]>
  1609. * TypeTranslator.cs : patch by Erik LeBel. Array consideration.
  1610. * XmlReflectionImporter.cs : patch by Erik LeBel.
  1611. Now uses XmlRootAttribute to determine element name.
  1612. 2003-03-17 Miguel de Icaza <[email protected]>
  1613. * XmlSerializer.cs: Do not use Bubblesort, use ArrayList.Sort.
  1614. Kill Bublesort.
  1615. 2003-03-22 Atsushi Enomoto <[email protected]>
  1616. * XmlSerializer.cs : patch by Sean Cier. Serialize() other than
  1617. XmlWriter argument should call WriteEndDocument.
  1618. 2003-03-19 Atsushi Enomoto <[email protected]>
  1619. * XmlSerializer.cs : Serialize() don't write xmldecl when WriteState is
  1620. not WriteState.Start, and never call WriteEndDocument().
  1621. 2003-03-12 Elan Feingold <[email protected]>
  1622. * XmlCustomFormatter.cs: Correct signature, Implement
  1623. ToByteArrayBase64
  1624. * XmlSerializationWriter.cs: Fix prototype.
  1625. * XmlSerializer.cs: Implements Deserialize().
  1626. 2003-02-16 Atsushi Enomoto <[email protected]>
  1627. * XmlSerializer.cs : serializing now works for interface member.
  1628. 2003-01-26 Atsushi Enomoto <[email protected]>
  1629. * XmlSerializer.cs : some fix handling xml node object more correct.
  1630. 2003-01-16 Ajay kumar Dwivedi <[email protected]>
  1631. * XmlSerializer.cs: Array serialization for 1D arrays works
  1632. * TypeTranslator: Added for translations`
  1633. 2002-09-19 Gonzalo Paniagua Javier <[email protected]>
  1634. * XmlCustomFormatter.cs: finished.
  1635. * XmlSerializationReader.cs: implemented some more methods.
  1636. 2002-09-18 Gonzalo Paniagua Javier <[email protected]>
  1637. * XmlSerializationReader.cs: implemented a few methods.
  1638. * XmlAnyElementAttribute.cs:
  1639. * XmlArrayAttribute.cs:
  1640. * XmlChoiceIdentifierAttribute.cs:
  1641. * XmlElementAttribute.cs:
  1642. * XmlMemberMapping.cs:
  1643. * XmlMembersMapping.cs: class status based fixes.
  1644. 2002-09-13 Gonzalo Paniagua Javier <[email protected]>
  1645. * CodeIdentifiers.cs:
  1646. * XmlSchemaExporter.cs:
  1647. * XmlSchemaImporter.cs:
  1648. * XmlSchemas.cs:
  1649. * XmlSerializationWriteCallback.cs:
  1650. * XmlSerializationWriter.cs:
  1651. * XmlSerializer.cs:
  1652. * XmlSerializerNamespaces.cs: some class status based fixed and
  1653. implemented a couple of methods.
  1654. * SoapSchemaExporter.cs: stubbed out.
  1655. 2002-08-24 Tim Coleman <[email protected]>
  1656. * SoapCodeExporter.cs:
  1657. Fix return value of ExportTypeMapping.
  1658. * XmlCustomFormatter.cs:
  1659. Change methods to be internal instead of public.
  1660. * XmlSerializationWriter.cs:
  1661. Modify GetPrimitiveTypeName to build on linux.
  1662. Modify GetQualifiedName to return an incrementing prefix
  1663. instead of the same one all the time (still need to manage
  1664. conflicts)
  1665. Modify WriteElementString to only do special stuff is XsiType
  1666. is not defined.
  1667. Modify WriteTypedPrimitive to use FromXmlQualifiedName if it's
  1668. an XmlQualifiedName.
  1669. 2002-08-22 Tim Coleman <[email protected]>
  1670. * XmlSerializationReader.cs:
  1671. Some implementation
  1672. * XmlSerializationWriter.cs:
  1673. More implementation
  1674. * XmlCustomFormatter.cs:
  1675. Implemented this class.
  1676. 2002-08-20 Tim Coleman <[email protected]>
  1677. * XmlSerializationWriter.cs:
  1678. Some implementation.
  1679. 2002-08-19 Tim Coleman <[email protected]>
  1680. * XmlSerializer.cs:
  1681. New stubs added.
  1682. * XmlSerializationWriter.cs:
  1683. New stubs added.
  1684. 2002-08-14 Tim Coleman <[email protected]>
  1685. * XmlSerializer.cs:
  1686. More reformatting of source code so I can
  1687. better understand what it does.
  1688. 2002-08-06 Tim Coleman <[email protected]>
  1689. * XmlSerializer.cs:
  1690. Some reformatting of code for readability.
  1691. Modify to correctly serialize ICollection objects
  1692. such as the BindingCollection of a ServiceDescription
  1693. for example.
  1694. 2002-08-03 Tim Coleman <[email protected]>
  1695. * XmlSerializer.cs:
  1696. Changed Implements() to check based on name rather
  1697. than FullName. FullName was never working correctly.
  1698. 2002-07-26 Tim Coleman <[email protected]>
  1699. * XmlSerializer.cs:
  1700. The constructor now looks for an XmlRootAttribute attribute
  1701. if one is not passed in. Various changes to make it emit
  1702. proper XML, such as handling an element without a namespace
  1703. prefix, and using WriteEndDocument where it should be.
  1704. 2002-07-24 Tim Coleman <[email protected]>
  1705. * CodeIdentifier.cs:
  1706. * IXmlSerializable.cs:
  1707. * XmlSerializationCollectionFixupCallback.cs:
  1708. * XmlSerializationFixupCallback.cs:
  1709. * XmlSerializationReadCallback.cs:
  1710. * XmlSerializationReader.cs:
  1711. * XmlSerializationWriteCallback.cs:
  1712. Add new classes.
  1713. * XmlSchemas.cs
  1714. * CodeIdentifiers.cs:
  1715. Implement some of these classes
  1716. * XmlCodeExporter.cs:
  1717. Fix return type of a function
  1718. 2002-07-24 Tim Coleman <[email protected]>
  1719. * SoapReflectionImporter.cs:
  1720. New class added to build
  1721. System.Web.Services.Description.ServiceDescription.cs
  1722. 2002-07-22 Tim Coleman <[email protected]>
  1723. * CodeIdentifiers.cs:
  1724. * SoapCodeExporter.cs:
  1725. * SoapSchemaExporter.cs:
  1726. * XmlCodeExporter.cs:
  1727. * XmlMemberMapping.cs:
  1728. * XmlMembersMapping.cs:
  1729. * XmlReflectionImporter.cs:
  1730. * XmlReflectionMember.cs:
  1731. * XmlSchemaExporter.cs:
  1732. * XmlSchemaImporter.cs:
  1733. * XmlSchemas.cs:
  1734. New stubbs added to aid in the linux build of
  1735. System.Web.Services.
  1736. 2002-07-05 Ajay kumar Dwivedi <[email protected]>
  1737. * XmlSeriailizer: Serialize method can serialize XmlSchema perfectly.
  1738. * XmlSerializerNamespaces: Reverted to use of a single Hashtable.
  1739. 2002-07-02 Ajay kumar Dwivedi <[email protected]>
  1740. * XmlSeriailizer: Updated Serialize() method.
  1741. 2002-06-27 Ajay kumar Dwivedi <[email protected]>
  1742. * XmlSerializer: Serialize() method Partially Implemented.
  1743. 2002-06-20 Ajay kumar Dwivedi <[email protected]>
  1744. * Soap & XmlOverrides: Implemented using TypeMember as key with
  1745. suggestions from Rafael.