ChangeLog 115 KB

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