Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Web Services] Fix regression caused by previous commit

Fixes a regression caused by the implementation of support
for optional parameters. GlobalIndex was not being set
when using SOAP RPC protocol.
  • Loading branch information...
commit 64f045b98659b3552ae2b46b6e4e56fc9dad76e2 1 parent d5631ee
@slluis slluis authored
View
2  mcs/class/System.XML/System.Xml.Serialization/XmlTypeMapMember.cs
@@ -41,7 +41,7 @@ internal class XmlTypeMapMember
{
string _name;
int _index;
- int _globalIndex;
+ int _globalIndex = -1;
int _specifiedGlobalIndex = -1;
TypeData _typeData;
MemberInfo _member;
View
4 mcs/class/System.XML/System.Xml.Serialization/XmlTypeMapping.cs
@@ -303,6 +303,10 @@ internal class ClassMap: ObjectMap
public void AddMember (XmlTypeMapMember member)
{
+ // If GlobalIndex has not been set, set it now
+ if (member.GlobalIndex == -1)
+ member.GlobalIndex = _allMembers.Count;
+
_allMembers.Add (member);
if (!(member.DefaultValue is System.DBNull) && member.DefaultValue != null) {
Please sign in to comment.
Something went wrong with that request. Please try again.