Ver código fonte

2006-02-21 Lluis Sanchez Gual <[email protected]>

	* XmlSerializer.cs: Fix the previous fix.
	

svn path=/trunk/mcs/; revision=57094
Lluis Sanchez 20 anos atrás
pai
commit
ce5affe08f

+ 4 - 0
mcs/class/System.XML/System.Xml.Serialization/ChangeLog

@@ -1,3 +1,7 @@
+2006-02-21  Lluis Sanchez Gual  <[email protected]> 
+
+	* XmlSerializer.cs: Fix the previous fix.
+	
 2006-02-21  Lluis Sanchez Gual  <[email protected]>
 
 	* XmlSerializer.cs: Added option to avoid falling back to the

+ 15 - 15
mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs

@@ -131,21 +131,21 @@ namespace System.Xml.Serialization
 			if (th == null) {
 				generationThreshold = 50;
 				backgroundGeneration = true;
-			}
-			
-			int i = th.IndexOf (',');
-			if (i != -1) {
-				if (th.Substring (i+1) == "nofallback")
-					generatorFallback = false;
-				th = th.Substring (0, i);
-			}
-			
-			if (th.ToLower(CultureInfo.InvariantCulture) == "no") 
-				generationThreshold = -1;
-			else {
-				generationThreshold = int.Parse (th, CultureInfo.InvariantCulture);
-				backgroundGeneration = (generationThreshold != 0);
-				if (generationThreshold < 1) generationThreshold = 1;
+			} else {
+				int i = th.IndexOf (',');
+				if (i != -1) {
+					if (th.Substring (i+1) == "nofallback")
+						generatorFallback = false;
+					th = th.Substring (0, i);
+				}
+				
+				if (th.ToLower(CultureInfo.InvariantCulture) == "no") 
+					generationThreshold = -1;
+				else {
+					generationThreshold = int.Parse (th, CultureInfo.InvariantCulture);
+					backgroundGeneration = (generationThreshold != 0);
+					if (generationThreshold < 1) generationThreshold = 1;
+				}
 			}
 #endif
 			deleteTempFiles = (db == null || db == "no");