2005-01-13 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.XML / System.Xml.Serialization / CodeIdentifier.cs
index 93d78b2f69f104d581357c8cd86dec54df0217d0..650578aa0d65a0e24dcd19ccad0248f7b80638d2 100644 (file)
@@ -34,9 +34,11 @@ using System.Globalization;
 namespace System.Xml.Serialization {
        public class CodeIdentifier {
 
-               public CodeIdentifier ()
+#if NET_2_0
+               private CodeIdentifier ()
                {
                }
+#endif
 
                public static string MakeCamel (string identifier)
                {
@@ -55,7 +57,7 @@ namespace System.Xml.Serialization {
                        if (identifier == null)
                                throw new NullReferenceException ();
                        if (identifier.Length == 0)
-                               return identifier;
+                               return "Item";
 
                        string output = "";