Author: gert
Date: 2006-05-31 04:22:07 -0400 (Wed, 31 May 2006)
New Revision: 61299

Modified:
   
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ChangeLog
   
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapFormatter.cs
   
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapReader.cs
   
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
   
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapWriter.cs
Log:
* SoapWriter.cs: Fixed line endings. Set eol-style to CRLF.
* SoapReader.cs: Fixed line endings. Set eol-style to CRLF.
* SoapFormatter.cs: Fixed line endings. Set eol-style to CRLF.
Remove unnecessary dtor.
* SoapTypeMapper.cs: Fixed line endings. Set eol-style to native.


Modified: 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ChangeLog
===================================================================
--- 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ChangeLog
 2006-05-31 08:14:22 UTC (rev 61298)
+++ 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ChangeLog
 2006-05-31 08:22:07 UTC (rev 61299)
@@ -1,3 +1,11 @@
+2006-05-31  Gert Driesen <[EMAIL PROTECTED]>
+
+       * SoapWriter.cs: Fixed line endings. Set eol-style to CRLF.
+       * SoapReader.cs: Fixed line endings. Set eol-style to CRLF.
+       * SoapFormatter.cs: Fixed line endings. Set eol-style to CRLF.
+       Remove unnecessary dtor.
+       * SoapTypeMapper.cs: Fixed line endings. Set eol-style to native.
+
 2006-04-04  roei erez <[EMAIL PROTECTED]>
        
        *SoapReader.cs: bug 77563 competability with MS.NET in

Modified: 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapFormatter.cs
===================================================================
--- 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapFormatter.cs
  2006-05-31 08:14:22 UTC (rev 61298)
+++ 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapFormatter.cs
  2006-05-31 08:22:07 UTC (rev 61299)
@@ -5,28 +5,28 @@
 //     Authors:
 //             Jean-Marc Andre ([EMAIL PROTECTED])
 //
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
 
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
 using System;
 using System.IO;
 using System.Reflection;
@@ -66,10 +66,6 @@
                        _context = context;
                }
                
-               ~SoapFormatter() {
-               }
-
-       
                public object Deserialize(Stream serializationStream) {
                        return Deserialize(serializationStream, null);
                }


Property changes on: 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapFormatter.cs
___________________________________________________________________
Name: svn:eol-style
   + CRLF

Modified: 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapReader.cs
===================================================================
--- 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapReader.cs
     2006-05-31 08:14:22 UTC (rev 61298)
+++ 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapReader.cs
     2006-05-31 08:22:07 UTC (rev 61299)
@@ -5,28 +5,28 @@
 //     Authors:
 //             Jean-Marc Andre ([EMAIL PROTECTED])
 //
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
 
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
 using System;
 using System.IO;
 using System.Xml;
@@ -90,7 +90,7 @@
                #region Public Methods
 
                public object Deserialize(Stream inStream, ISoapMessage 
soapMessage) 
-               {
+               {
                        ArrayList headers = null;
                        xmlReader = new XmlTextReader(inStream);
                        xmlReader.WhitespaceHandling = WhitespaceHandling.None;
@@ -100,21 +100,21 @@
                        {
                                // SOAP-ENV:Envelope
                                xmlReader.MoveToContent();
-                               xmlReader.ReadStartElement ();
-                               xmlReader.MoveToContent();
-                               
-                               // Read headers
-                               while (!(xmlReader.NodeType == 
XmlNodeType.Element && xmlReader.LocalName == "Body" && xmlReader.NamespaceURI 
== SoapTypeMapper.SoapEnvelopeNamespace))
+                               xmlReader.ReadStartElement ();
+                               xmlReader.MoveToContent();
+                               
+                               // Read headers
+                               while (!(xmlReader.NodeType == 
XmlNodeType.Element && xmlReader.LocalName == "Body" && xmlReader.NamespaceURI 
== SoapTypeMapper.SoapEnvelopeNamespace))
                                {
                                        if (xmlReader.NodeType == 
XmlNodeType.Element && xmlReader.LocalName == "Header" && 
xmlReader.NamespaceURI == SoapTypeMapper.SoapEnvelopeNamespace)
                                        {
                                                if (headers == null) headers = 
new ArrayList ();
                                                DeserializeHeaders (headers);
                                        }
-                                       else
+                                       else
                                                xmlReader.Skip ();
                                        xmlReader.MoveToContent();
-                               }
+                               }
                                
                                // SOAP-ENV:Body
                                xmlReader.ReadStartElement();
@@ -151,15 +151,15 @@
                        return TopObject;
                }
                
-               #endregion
-               
-               public SoapTypeMapper Mapper {
-                       get { return mapper; }
-               }
+               #endregion
                
-               public XmlTextReader XmlReader {
-                       get { return xmlReader; }
+               public SoapTypeMapper Mapper {
+                       get { return mapper; }
                }
+               
+               public XmlTextReader XmlReader {
+                       get { return xmlReader; }
+               }
 
                #region Private Methods
 
@@ -282,7 +282,7 @@
                        message.ParamValues = paramValues.ToArray();
                        RegisterObject(paramValuesId, message.ParamValues, 
null, 0, null, null);
                        return true;
-               }
+               }
 
                void DeserializeHeaders (ArrayList headers)
                {
@@ -302,10 +302,11 @@
                        }
                        
                        xmlReader.ReadEndElement ();
-               }
-               
                Header DeserializeHeader ()
-               {
-                       Header h = new Header (xmlReader.LocalName, null);
+               }
+               
+               Header DeserializeHeader ()
+               {
+                       Header h = new Header (xmlReader.LocalName, null);
                        h.HeaderNamespace = xmlReader.NamespaceURI;
                        h.MustUnderstand = xmlReader.GetAttribute 
("mustUnderstand", SoapTypeMapper.SoapEnvelopeNamespace) == "1";
                        
@@ -345,14 +346,14 @@
                        }
                        
                        // Get the array properties
-                       string strArrayType = xmlReader["arrayType", 
SoapTypeMapper.SoapEncodingNamespace];
-                       string[] arrayInfo = strArrayType.Split(':');
-                       int arraySuffixInfo = arrayInfo[1].LastIndexOf('[');
-                       String arrayElementType = arrayInfo[1].Substring(0, 
arraySuffixInfo);
-                       String arraySuffix = 
arrayInfo[1].Substring(arraySuffixInfo);
-                       string[] arrayDims = 
arraySuffix.Substring(1,arraySuffix.Length-2).Trim().Split(',');
-                       int numberOfDims = arrayDims.Length;
-                       int[] lengths = new int[numberOfDims];
+                       string strArrayType = xmlReader["arrayType", 
SoapTypeMapper.SoapEncodingNamespace];
+                       string[] arrayInfo = strArrayType.Split(':');
+                       int arraySuffixInfo = arrayInfo[1].LastIndexOf('[');
+                       String arrayElementType = arrayInfo[1].Substring(0, 
arraySuffixInfo);
+                       String arraySuffix = 
arrayInfo[1].Substring(arraySuffixInfo);
+                       string[] arrayDims = 
arraySuffix.Substring(1,arraySuffix.Length-2).Trim().Split(',');
+                       int numberOfDims = arrayDims.Length;
+                       int[] lengths = new int[numberOfDims];
                        
                        for (int i=0; i < numberOfDims; i++)
                        {
@@ -365,7 +366,7 @@
                        Type arrayType = mapper.GetType (arrayElementType, 
xmlReader.LookupNamespace(arrayInfo[0]));
                        Array array = Array.CreateInstance(
                                arrayType,
-                               lengths);
+                               lengths);
 
                        for(int i = 0; i < numberOfDims; i++) 
                        {
@@ -749,10 +750,10 @@
                        
                        _fieldIndices[type] = tm;
                        return tm;
-               }
-               
-               public Type GetTypeFromQName (string qname)
-               {
+               }
+               
+               public Type GetTypeFromQName (string qname)
+               {
                        string[] strName = qname.Split(':');
                        string namespaceURI = xmlReader.LookupNamespace 
(strName[0]);
                        return mapper.GetType (strName[1], namespaceURI);


Property changes on: 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapReader.cs
___________________________________________________________________
Name: svn:eol-style
   + CRLF

Modified: 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
===================================================================
--- 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
 2006-05-31 08:14:22 UTC (rev 61298)
+++ 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
 2006-05-31 08:22:07 UTC (rev 61299)
@@ -142,7 +142,7 @@
                        _assemblyFormat = assemblyFormat;
                        _prefixNumber = 1;
                        //Type elementType = typeof(string);
-                       if(typeFormat == FormatterTypeStyle.XsdString)
+                       if(typeFormat == FormatterTypeStyle.XsdString)
                        {
                                elementString = new Element("xsd", "string", 
XmlSchema.Namespace);
                        }
@@ -237,7 +237,7 @@
                        Element element;
                        string typeNamespace = string.Empty;
                        string typeName = typeFullName;
-                       if(_assemblyFormat == FormatterAssemblyStyle.Simple)
+                       if(_assemblyFormat == FormatterAssemblyStyle.Simple)
                        {
                                string[] items = assemblyName.Split(',');
                                assemblyName = items[0];


Property changes on: 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapWriter.cs
===================================================================
--- 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapWriter.cs
     2006-05-31 08:14:22 UTC (rev 61298)
+++ 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapWriter.cs
     2006-05-31 08:22:07 UTC (rev 61299)
@@ -5,28 +5,28 @@
 //     Authors:
 //             Jean-Marc Andre ([EMAIL PROTECTED])
 //
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
 
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
 using System;
 using System.IO;
 using System.Reflection;
@@ -110,15 +110,15 @@
                        defaultMessageNamespace = 
typeof(SoapWriter).Assembly.GetName().FullName;
                }
 
-               #endregion
-               
-               public SoapTypeMapper Mapper {
-                       get { return _mapper; }
-               }
+               #endregion
                
-               public XmlTextWriter XmlWriter {
-                       get { return _xmlWriter; }
+               public SoapTypeMapper Mapper {
+                       get { return _mapper; }
                }
+               
+               public XmlTextWriter XmlWriter {
+                       get { return _xmlWriter; }
+               }
 
                #region Internal Properties
 
@@ -240,8 +240,8 @@
                                SoapTypeMapper.SoapEnvelopePrefix,
                                "encodingStyle",
                                SoapTypeMapper.SoapEnvelopeNamespace,
-                               "http://schemas.xmlsoap.org/soap/encoding/";);
-                                               
+                               "http://schemas.xmlsoap.org/soap/encoding/";);
+                                               
                        ISoapMessage msg = objGraph as ISoapMessage;
                        if (msg != null)
                                headers = msg.Headers;
@@ -315,24 +315,25 @@
 
 
                        _xmlWriter.WriteFullEndElement();
-               }
-               
                private void SerializeHeader (Header header)
-               {
-                       string ns = header.HeaderNamespace != null ? 
header.HeaderNamespace : "http://schemas.microsoft.com/clr/soap";; 
-                       _xmlWriter.WriteStartElement ("h4", header.Name, ns);
-                       if (header.MustUnderstand)
+               }
+               
+               private void SerializeHeader (Header header)
+               {
+                       string ns = header.HeaderNamespace != null ? 
header.HeaderNamespace : "http://schemas.microsoft.com/clr/soap";; 
+                       _xmlWriter.WriteStartElement ("h4", header.Name, ns);
+                       if (header.MustUnderstand)
                                _xmlWriter.WriteAttributeString 
("mustUnderstand", SoapTypeMapper.SoapEnvelopeNamespace, "1");
-                       _xmlWriter.WriteAttributeString ("root", 
SoapTypeMapper.SoapEncodingNamespace, "1");
-                       
-                       if (header.Name == "__MethodSignature") {
-                               // This is a lame way of identifying the 
signature header, but looks like it is
-                               // what MS.NET does.
-                               Type[] val = header.Value as Type[];
-                               if (val == null)
-                                       throw new SerializationException 
("Invalid method signature.");
-                               SerializeComponent (new MethodSignature (val), 
true);
-                       } else
-                               SerializeComponent (header.Value, true);
+                       _xmlWriter.WriteAttributeString ("root", 
SoapTypeMapper.SoapEncodingNamespace, "1");
+                       
+                       if (header.Name == "__MethodSignature") {
+                               // This is a lame way of identifying the 
signature header, but looks like it is
+                               // what MS.NET does.
+                               Type[] val = header.Value as Type[];
+                               if (val == null)
+                                       throw new SerializationException 
("Invalid method signature.");
+                               SerializeComponent (new MethodSignature (val), 
true);
+                       } else
+                               SerializeComponent (header.Value, true);
                                
                        _xmlWriter.WriteEndElement();
                }
@@ -385,15 +386,15 @@
                        // with a id = 0
                        if(currentObjectId > 0)
                        {
-                               Element element = _mapper.GetXmlElement 
(currentType);
+                               Element element = _mapper.GetXmlElement 
(currentType);
                                _xmlWriter.WriteStartElement(element.Prefix, 
element.LocalName, element.NamespaceURI);
                                Id(currentObjectId);
-                       }
+                       }
 
-                       if (currentType == typeof(TimeSpan))
-                       {
-                               
_xmlWriter.WriteString(SoapTypeMapper.GetXsdValue(currentObject));
-                       }
+                       if (currentType == typeof(TimeSpan))
+                       {
+                               
_xmlWriter.WriteString(SoapTypeMapper.GetXsdValue(currentObject));
+                       }
                        else if(currentType == typeof(string))
                        {
                                
_xmlWriter.WriteString(currentObject.ToString());
@@ -406,7 +407,7 @@
                                for(int i = 0; i < memberInfos.Length; i++) 
                                {
                                        FieldInfo fieldInfo = (FieldInfo) 
memberInfos[i];
-                                       SoapFieldAttribute at = 
(SoapFieldAttribute) InternalRemotingServices.GetCachedSoapAttribute 
(fieldInfo);
+                                       SoapFieldAttribute at = 
(SoapFieldAttribute) InternalRemotingServices.GetCachedSoapAttribute 
(fieldInfo);
                                        _xmlWriter.WriteStartElement 
(XmlConvert.EncodeLocalName (at.XmlElementName));
                                        SerializeComponent(
                                                objectData[i], 
@@ -417,9 +418,10 @@
                        if(currentObjectId > 0)
                                _xmlWriter.WriteFullEndElement();
 
-               }
-               
-               
                private void SerializeISerializableObject(
+               }
+               
+               
+               private void SerializeISerializableObject(
                        object currentObject,
                        long currentObjectId,
                        ISerializationSurrogate surrogate)
@@ -471,7 +473,7 @@
                                _xmlWriter.WriteFullEndElement();
                                return;
                        }
-
+
                        string prefix = GetNamespacePrefix (xmlArrayType);
 
                        StringBuilder str = new StringBuilder();
@@ -530,8 +532,8 @@
                        Type objType = obj.GetType();
                        bool canBeValue = _mapper.IsInternalSoapType (objType);
                        bool firstTime;
-                       long id = 0;
-                       
+                       long id = 0;
+                       
                        // An object already serialized
                        if((id = idGen.HasId(obj, out firstTime)) != 0L) 
                        {
@@ -583,18 +585,18 @@
                                throw new SerializationException("Oooops");
 
                        Element xmlType = _mapper.GetXmlElement (type);
-
-                       string prefix = GetNamespacePrefix (xmlType);
+
+                       string prefix = GetNamespacePrefix (xmlType);
                        
                        _xmlWriter.WriteAttributeString (
                                "xsi",
                                "type",
                                "http://www.w3.org/2001/XMLSchema-instance";,
-                               prefix + ":" + xmlType.LocalName);
-               }
-               
-               public string GetNamespacePrefix (Element xmlType)
-               {
+                               prefix + ":" + xmlType.LocalName);
+               }
+               
+               public string GetNamespacePrefix (Element xmlType)
+               {
                        string prefix = _xmlWriter.LookupPrefix 
(xmlType.NamespaceURI);
                        if(prefix == null || prefix == string.Empty) 
                        {
@@ -602,9 +604,9 @@
                                        "xmlns",
                                        xmlType.Prefix,
                                        "http://www.w3.org/2000/xmlns/";,
-                                       xmlType.NamespaceURI);
+                                       xmlType.NamespaceURI);
                                return xmlType.Prefix;
-                       }
+                       }
                        return prefix;
                }
        }


Property changes on: 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapWriter.cs
___________________________________________________________________
Name: svn:eol-style
   + CRLF

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to