ChangeLog 106 KB

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