projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #5120 from lambdageek/bug-57744
[mono.git]
/
mcs
/
class
/
corlib
/
ReferenceSources
/
PathInternal.cs
diff --git
a/mcs/class/corlib/ReferenceSources/PathInternal.cs
b/mcs/class/corlib/ReferenceSources/PathInternal.cs
index 828a080bb4dc7c997f8c3bb541fbd7a3c373145b..5ad1b2edab73224df5c7177324aa171171c538a3 100644
(file)
--- a/
mcs/class/corlib/ReferenceSources/PathInternal.cs
+++ b/
mcs/class/corlib/ReferenceSources/PathInternal.cs
@@
-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