ChangeLog 114 KB

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