New test.
[mono.git] / mcs / class / System.Runtime.Serialization.Formatters.Soap / System.Runtime.Serialization.Formatters.Soap / SoapReader.cs
index a7c0ddb1a1f97495e56af6a90bfb607bd2d65e77..90b9e578dd414f8c162e56bd04c83f022fecf080 100644 (file)
@@ -659,7 +659,9 @@ namespace System.Runtime.Serialization.Formatters.Soap {
                        if(componentId != 0)\r
                        {\r
                                // It's a string\r
-                               return xmlReader.ReadElementString();\r
+                               string str = xmlReader.ReadElementString();\r
+                               objMgr.RegisterObject (str, componentId);\r
+                               return str;\r
                        }\r
                        if(componentHref != 0)\r
                        {\r