Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View File

@ -112,6 +112,10 @@ namespace System.Security.Permissions {
throw new NotImplementedException ();
}
internal FileIOPermission (FileIOPermissionAccess access, string[] pathList, bool checkForDuplicates, bool needFullPath)
{
}
public FileIOPermissionAccess AllFiles {
get { return m_AllFilesAccess; }
set {

View File

@ -39,12 +39,16 @@ namespace System.Security.Permissions {
private HostProtectionResource _resources;
#if BOOTSTRAP_BASIC
public HostProtectionAttribute (SecurityAction action = SecurityAction.LinkDemand)
#else
public HostProtectionAttribute ()
: base (SecurityAction.LinkDemand)
{
}
public HostProtectionAttribute (SecurityAction action)
#endif
: base (action)
{
if (action != SecurityAction.LinkDemand) {

View File

@ -119,8 +119,7 @@ namespace System.Security.Permissions {
}
a = esd.Attribute ("UserQuota");
if (a != null) {
Exception exc;
Int64.Parse (a, true, out m_userQuota, out exc);
m_userQuota = Int64.Parse (a, CultureInfo.InvariantCulture);
}
}
}

View File

@ -170,7 +170,7 @@ namespace System.Security.Permissions {
private void SetFlags (KeyContainerPermissionFlags flags)
{
if ((flags & KeyContainerPermissionFlags.AllFlags) != 0) {
if ((flags & KeyContainerPermissionFlags.AllFlags) == 0) {
string msg = String.Format (Locale.GetText ("Invalid enum {0}"), flags);
throw new ArgumentException (msg, "KeyContainerPermissionFlags");
}

View File

@ -73,9 +73,7 @@ namespace System.Security.Permissions {
}
}
#if NET_4_0
[Obsolete]
#endif
public bool ReflectionEmit
{
get { return reflectionEmit; }

View File

@ -45,14 +45,10 @@ namespace System.Security.Permissions {
TypeInformation = 0x00000001,
MemberAccess = 0x00000002,
#if NET_4_0
[Obsolete]
#endif
ReflectionEmit = 0x4,
#if NET_4_0
[Obsolete]
#endif
AllFlags = TypeInformation | MemberAccess | ReflectionEmit,
[ComVisible (false)]

View File

@ -43,24 +43,16 @@ namespace System.Security.Permissions {
public enum SecurityAction {
Demand = 2,
Assert = 3,
#if NET_4_0
[Obsolete ("This requests should not be used")]
#endif
Deny = 4,
PermitOnly = 5,
LinkDemand = 6,
InheritanceDemand = 7,
#if NET_4_0
[Obsolete ("This requests should not be used")]
#endif
RequestMinimum = 8,
#if NET_4_0
[Obsolete ("This requests should not be used")]
#endif
RequestOptional = 9,
#if NET_4_0
[Obsolete ("This requests should not be used")]
#endif
RequestRefuse = 10,
}
}