ChangeLog 104 KB

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