X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=mcs%2Fclass%2Fcorlib%2FSystem.Security.AccessControl%2FFileSecurity.cs;h=046d34225e4e154b10278b68566e13432d982093;hb=2002994d0c06860d22253edbb7bae0ddcda7df44;hp=e72559ab0aab01b6431471c92ce71df1e29708f4;hpb=a3ea7ceb4d4f5e2cb8ea421313e8939640fb898c;p=mono.git diff --git a/mcs/class/corlib/System.Security.AccessControl/FileSecurity.cs b/mcs/class/corlib/System.Security.AccessControl/FileSecurity.cs index e72559ab0aa..046d34225e4 100644 --- a/mcs/class/corlib/System.Security.AccessControl/FileSecurity.cs +++ b/mcs/class/corlib/System.Security.AccessControl/FileSecurity.cs @@ -26,21 +26,28 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -#if NET_2_0 +using System.Runtime.InteropServices; -namespace System.Security.AccessControl { - public sealed class FileSecurity : FileSystemSecurity { +namespace System.Security.AccessControl +{ + public sealed class FileSecurity : FileSystemSecurity +{ public FileSecurity () + : base (false) { - throw new PlatformNotSupportedException (); } public FileSecurity (string fileName, AccessControlSections includeSections) + : base (false, fileName, includeSections) + { + } + + internal FileSecurity (SafeHandle handle, + AccessControlSections includeSections) + : base (false, handle, includeSections) { - throw new PlatformNotSupportedException (); } } } -#endif