Skip to content

Commit

Permalink
* XmlTypeMapElementInfo.cs: no need to compare nesting level in Equals.
Browse files Browse the repository at this point in the history
	* XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
	  array if the namespace is not specified in XmlArrayItemAttribute.

svn path=/trunk/mcs/; revision=15611
  • Loading branch information
slluis committed Jun 24, 2003
1 parent b815e6e commit 282c082
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions mcs/class/System.XML/System.Xml.Serialization/ChangeLog
@@ -1,3 +1,9 @@
2003-06-24 Lluis Sanchez Gual <lluis@ximian.com>

* XmlTypeMapElementInfo.cs: no need to compare nesting level in Equals.
* XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
array if the namespace is not specified in XmlArrayItemAttribute.

2003-06-17 Lluis Sanchez Gual <lluis@ximian.com>

* XmlReflectionImporter.cs: Reset internal tables for each ImportMembersMapping call.
Expand Down
Expand Up @@ -241,7 +241,8 @@ XmlTypeMapping ImportListMapping (Type type, XmlRootAttribute root, string defau
Type elemType = (att.Type != null) ? att.Type : itemType;
XmlTypeMapElementInfo elem = new XmlTypeMapElementInfo (null, TypeTranslator.GetTypeData(elemType));
elem.DataType = att.DataType;
elem.Namespace = att.Namespace != null ? att.Namespace : "";
elem.Namespace = att.Namespace != null ? att.Namespace : defaultNamespace;
if (elem.Namespace == null) elem.Namespace = "";
elem.Form = att.Form;
elem.IsNullable = att.IsNullable;
elem.NestingLevel = att.NestingLevel;
Expand Down Expand Up @@ -270,7 +271,7 @@ XmlTypeMapping ImportListMapping (Type type, XmlRootAttribute root, string defau
else elem.ElementName = TypeTranslator.GetTypeData(itemType).XmlType ;

elem.Namespace = (defaultNamespace != null) ? defaultNamespace : "";
elem.IsNullable = true; // By default, items are nullable
elem.IsNullable = false;
list.Add (elem);
}

Expand Down
Expand Up @@ -135,7 +135,6 @@ public override bool Equals (object other)
if (_choiceValue != oinfo._choiceValue) return false;
if (_type.Type != oinfo._type.Type) return false;
if (_isNullable != oinfo._isNullable) return false;
if (_nestingLevel != oinfo._nestingLevel) return false;
return true;
}

Expand Down

0 comments on commit 282c082

Please sign in to comment.