Bladeren bron

2009-08-18 Zoltan Varga <[email protected]>

	* MonoGenericClass.cs: Use StringComparison.Ordinal when calling
	String.EndsWith ().

svn path=/trunk/mcs/; revision=140185
Zoltan Varga 16 jaren geleden
bovenliggende
commit
c1f1c8dd77

+ 5 - 0
mcs/class/corlib/System.Reflection/ChangeLog

@@ -1,3 +1,8 @@
+2009-08-18  Zoltan Varga  <[email protected]>
+
+	* MonoGenericClass.cs: Use StringComparison.Ordinal when calling
+	String.EndsWith ().
+
 2009-08-07 Rodrigo Kumpera  <[email protected]>
 
 	* MonoGenericClass.cs: Implement almost all methods required

+ 1 - 1
mcs/class/corlib/System.Reflection/MonoGenericClass.cs

@@ -131,7 +131,7 @@ namespace System.Reflection
 			if (type.IsArray) {
 				if (type.GetArrayRank () > 1)
 					return InflateType (type.GetElementType (), method_args).MakeArrayType (type.GetArrayRank ());
-				if (type.ToString ().EndsWith ("[*]")) /*FIXME, the reflection API doesn't offer a way around this*/
+				if (type.ToString ().EndsWith ("[*]", StringComparison.Ordinal)) /*FIXME, the reflection API doesn't offer a way around this*/
 					return InflateType (type.GetElementType (), method_args).MakeArrayType (1);
 				return InflateType (type.GetElementType (), method_args).MakeArrayType ();
 			}