Can I write a Microsoft .NET programm with a FileSystemWatcher and expect it to work under Mac OS X with 开发者_高级运维Mono without changes?
Yes, it will work without changes. Mono includes a FileSystemWatcher for all platforms.
Keep in mind that your code might want to use Path.PathSeperator to be more compatible with the different ways directory names are formatted on different platforms.
As of November 2011, it exists and works for some uses, but not all.
For example, LastWrite and Size dont seem to work on OSX.
精彩评论