ChangeLog 109 KB

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