diff options
Diffstat (limited to 'src/mscorlib/src/System/Runtime/InteropServices/ErrorWrapper.cs')
-rw-r--r-- | src/mscorlib/src/System/Runtime/InteropServices/ErrorWrapper.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mscorlib/src/System/Runtime/InteropServices/ErrorWrapper.cs b/src/mscorlib/src/System/Runtime/InteropServices/ErrorWrapper.cs index d63d69cabd..a9fa58f65f 100644 --- a/src/mscorlib/src/System/Runtime/InteropServices/ErrorWrapper.cs +++ b/src/mscorlib/src/System/Runtime/InteropServices/ErrorWrapper.cs @@ -28,14 +28,10 @@ namespace System.Runtime.InteropServices { public ErrorWrapper(Object errorCode) { if (!(errorCode is int)) - throw new ArgumentException(Environment.GetResourceString("Arg_MustBeInt32"), "errorCode"); + throw new ArgumentException(Environment.GetResourceString("Arg_MustBeInt32"), nameof(errorCode)); m_ErrorCode = (int)errorCode; } - [System.Security.SecuritySafeCritical] // auto-generated -#pragma warning disable 618 - [SecurityPermissionAttribute(SecurityAction.Demand, Flags=SecurityPermissionFlag.UnmanagedCode)] -#pragma warning restore 618 public ErrorWrapper(Exception e) { m_ErrorCode = Marshal.GetHRForException(e); |