Imported Upstream version 4.8.0.309

Former-commit-id: 5f9c6ae75f295e057a7d2971f3a6df4656fa8850
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2016-11-10 13:04:39 +00:00
parent ee1447783b
commit 94b2861243
4912 changed files with 390737 additions and 49310 deletions

View File

@@ -38,10 +38,7 @@ using System.Diagnostics;
using System.Security;
using System.Text;
using System.Runtime.InteropServices;
#if !NET_2_1
using System.Security.AccessControl;
#endif
namespace System.IO
{
@@ -147,7 +144,6 @@ namespace System.IO
FileShare.None, bufferSize, options);
}
#if !NET_2_1
[MonoLimitation ("FileOptions and FileSecurity are ignored")]
public static FileStream Create (string path, int bufferSize,
FileOptions options,
@@ -156,7 +152,6 @@ namespace System.IO
return new FileStream (path, FileMode.Create, FileAccess.ReadWrite,
FileShare.None, bufferSize, options);
}
#endif
public static StreamWriter CreateText (string path)
{
@@ -201,7 +196,6 @@ namespace System.IO
return MonoIO.ExistsFile (path, out error);
}
#if !NET_2_1
public static FileSecurity GetAccessControl (string path)
{
// AccessControlSections.Audit requires special permissions.
@@ -215,7 +209,6 @@ namespace System.IO
{
return new FileSecurity (path, includeSections);
}
#endif
public static FileAttributes GetAttributes (string path)
{
@@ -434,7 +427,6 @@ namespace System.IO
}
}
#if !NET_2_1
public static void SetAccessControl (string path,
FileSecurity fileSecurity)
{
@@ -443,7 +435,6 @@ namespace System.IO
fileSecurity.PersistModifications (path);
}
#endif
public static void SetAttributes (string path,
FileAttributes fileAttributes)