Caliban Darklock wrote this around lunchtime:
This is a cute one from MSDN entry on the FileSecurity class.
To persist new or changed access or audit rules to a file, use the SetAccessControl or SetAccessControl method. To retrieve access or audit rules from an existing file, use the GetAccessControl or GetAccessControl method.
Isn’t it nice to have choices?Â
Once you actually start paying attention, you find that what they’re talking about is the methods available in the System.IO.File and System.IO.Fileinfo classes. Each has the same name for the same functionality, which is good, but the File class is a static set of methods that works on any file while FileInfo contains instance methods that only work on one specific file.
But it sure seems surreal when you first encounter it.