Merge pull request #5120 from lambdageek/bug-57744
[mono.git] / mcs / class / corlib / ReferenceSources / PathInternal.cs
index 828a080bb4dc7c997f8c3bb541fbd7a3c373145b..5ad1b2edab73224df5c7177324aa171171c538a3 100644 (file)
@@ -6,5 +6,10 @@ namespace System.IO
                {
                        return false;
                }
+
+               public static bool HasIllegalCharacters (string path, bool checkAdditional)
+               {
+                       return path.IndexOfAny (Path.InvalidPathChars) != -1;
+               }
        }
 }
\ No newline at end of file