diff options
Diffstat (limited to 'src/mscorlib/src/System/Runtime/InteropServices/MarshalDirectiveException.cs')
-rw-r--r-- | src/mscorlib/src/System/Runtime/InteropServices/MarshalDirectiveException.cs | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/src/mscorlib/src/System/Runtime/InteropServices/MarshalDirectiveException.cs b/src/mscorlib/src/System/Runtime/InteropServices/MarshalDirectiveException.cs index ec1014ecf8..6fe7574e26 100644 --- a/src/mscorlib/src/System/Runtime/InteropServices/MarshalDirectiveException.cs +++ b/src/mscorlib/src/System/Runtime/InteropServices/MarshalDirectiveException.cs @@ -11,29 +11,35 @@ ** =============================================================================*/ -namespace System.Runtime.InteropServices { - using System; - using System.Runtime.Serialization; +using System; +using System.Runtime.Serialization; +namespace System.Runtime.InteropServices +{ [Serializable] - public class MarshalDirectiveException : SystemException { - public MarshalDirectiveException() - : base(Environment.GetResourceString("Arg_MarshalDirectiveException")) { - SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); + public class MarshalDirectiveException : SystemException + { + public MarshalDirectiveException() + : base(SR.Arg_MarshalDirectiveException) + { + HResult = __HResults.COR_E_MARSHALDIRECTIVE; } - - public MarshalDirectiveException(String message) - : base(message) { - SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); + + public MarshalDirectiveException(String message) + : base(message) + { + HResult = __HResults.COR_E_MARSHALDIRECTIVE; } - - public MarshalDirectiveException(String message, Exception inner) - : base(message, inner) { - SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); + + public MarshalDirectiveException(String message, Exception inner) + : base(message, inner) + { + HResult = __HResults.COR_E_MARSHALDIRECTIVE; } - protected MarshalDirectiveException(SerializationInfo info, StreamingContext context) : base(info, context) { + protected MarshalDirectiveException(SerializationInfo info, StreamingContext context) : base(info, context) + { } } } |