Author: kostat
Date: 2007-05-16 02:01:20 -0400 (Wed, 16 May 2007)
New Revision: 77449

Modified:
   trunk/mcs/class/System.XML/System.Xml/XmlWriterSettings.cs
Log:
Refactor Clone

Modified: trunk/mcs/class/System.XML/System.Xml/XmlWriterSettings.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml/XmlWriterSettings.cs  2007-05-16 
05:53:23 UTC (rev 77448)
+++ trunk/mcs/class/System.XML/System.Xml/XmlWriterSettings.cs  2007-05-16 
06:01:20 UTC (rev 77449)
@@ -56,24 +56,9 @@
                        Reset ();
                }
 
-               private XmlWriterSettings (XmlWriterSettings org)
-               {
-                       checkCharacters = org.checkCharacters;
-                       closeOutput = org.closeOutput;
-                       conformance = org.conformance;
-                       encoding = org.encoding;
-                       indent = org.indent;
-                       indentChars = org.indentChars;
-                       newLineChars = org.newLineChars;
-                       newLineOnAttributes = org.newLineOnAttributes;
-                       newLineHandling = org.newLineHandling;
-                       outputMethod = org.outputMethod;
-                       omitXmlDeclaration = org.omitXmlDeclaration;
-               }
-
                public XmlWriterSettings Clone ()
                {
-                       return new XmlWriterSettings (this);
+                       return (XmlWriterSettings) MemberwiseClone ();
                }
 
                public void Reset ()

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

Reply via email to