Merge pull request #5090 from alexrp/profiler-class-unload-removal
[mono.git] / mcs / class / corlib / System.Security.AccessControl / FileSecurity.cs
index 238fa39255cc6208cd0376fbb8f66db9f2c8b7f2..046d34225e4e154b10278b68566e13432d982093 100644 (file)
 // 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)
                {
-                       throw new PlatformNotSupportedException ();
+               }
+               
+               internal FileSecurity (SafeHandle handle,
+                                      AccessControlSections includeSections)
+                       : base (false, handle, includeSections)
+               {
                }
        }
 }
 
-#endif