ChangeLog 89 KB

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