[Mono-list] Path.InvalidPathChars problem
Miguel de Icaza
miguel@ximian.com
Thu, 13 Jan 2005 16:42:08 -0500
Hello,
> I try to use Path.InvalidPathChars but i cant get it to work properly.
> Made a little program to test what it holds and got this:
>
> Program:
> foreach ( char invalidPathChar in Path.InvalidPathChars )
> {
> Console.Write( "{0} ", Convert.ToInt32(invalidPathChar) );
> }
> OutPut:
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
In Unix the only invalid character is null (notice that PathSeparator is
not part of the definition, it must be considered independently).
The array should be set to 1 instead of 15, which will be fixed in the
future.
Miguel