diff options
Diffstat (limited to 'src/mscorlib/src/System/Runtime/InteropServices/ErrorWrapper.cs')
-rw-r--r-- | src/mscorlib/src/System/Runtime/InteropServices/ErrorWrapper.cs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mscorlib/src/System/Runtime/InteropServices/ErrorWrapper.cs b/src/mscorlib/src/System/Runtime/InteropServices/ErrorWrapper.cs index da02893b1e..73be2c5777 100644 --- a/src/mscorlib/src/System/Runtime/InteropServices/ErrorWrapper.cs +++ b/src/mscorlib/src/System/Runtime/InteropServices/ErrorWrapper.cs @@ -11,10 +11,11 @@ ** =============================================================================*/ -namespace System.Runtime.InteropServices { - - using System; +using System; + +namespace System.Runtime.InteropServices +{ [Serializable] public sealed class ErrorWrapper { @@ -26,18 +27,18 @@ namespace System.Runtime.InteropServices { public ErrorWrapper(Object errorCode) { if (!(errorCode is int)) - throw new ArgumentException(Environment.GetResourceString("Arg_MustBeInt32"), nameof(errorCode)); + throw new ArgumentException(SR.Arg_MustBeInt32, nameof(errorCode)); m_ErrorCode = (int)errorCode; - } + } public ErrorWrapper(Exception e) { m_ErrorCode = Marshal.GetHRForException(e); } - public int ErrorCode + public int ErrorCode { - get + get { return m_ErrorCode; } |