remove warning
[mono.git] / mcs / class / corlib / System / String.cs
index 043ffb4bba31120f73b07257c77ef826938a94bf..df5b4451f3e772ea0dca6578dce2014ac27318ec 100644 (file)
@@ -221,6 +221,7 @@ namespace System
 
 #if NET_2_0
                [ComVisible (false)]
+               [MonoDocumentationNote ("code should be moved to managed")]
                public String[] Split (char[] separator, int count, StringSplitOptions options)
                {
                        if (separator == null || separator.Length == 0)
@@ -231,9 +232,10 @@ namespace System
                        if ((options != StringSplitOptions.None) && (options != StringSplitOptions.RemoveEmptyEntries))
                                throw new ArgumentException ("options must be one of the values in the StringSplitOptions enumeration", "options");
 
-                       if (count==0) return new String[0];
+                       if (count == 0)
+                               return new string [0];
 
-                       return InternalSplit (separator, count, (int) (options & StringSplitOptions.RemoveEmptyEntries) );
+                       return InternalSplit (separator, count, (int)options);
                }
 
                [ComVisible (false)]