diff options
Diffstat (limited to 'src/mscorlib/src/System/DivideByZeroException.cs')
-rw-r--r-- | src/mscorlib/src/System/DivideByZeroException.cs | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/src/mscorlib/src/System/DivideByZeroException.cs b/src/mscorlib/src/System/DivideByZeroException.cs index b975e81df6..4abd43adaf 100644 --- a/src/mscorlib/src/System/DivideByZeroException.cs +++ b/src/mscorlib/src/System/DivideByZeroException.cs @@ -11,29 +11,31 @@ ** =============================================================================*/ -namespace System { - - using System; - using System.Runtime.Serialization; -[System.Runtime.InteropServices.ComVisible(true)] +using System.Runtime.Serialization; + +namespace System +{ [Serializable] - public class DivideByZeroException : ArithmeticException { - public DivideByZeroException() - : base(Environment.GetResourceString("Arg_DivideByZero")) { - SetErrorCode(__HResults.COR_E_DIVIDEBYZERO); - } - - public DivideByZeroException(String message) - : base(message) { - SetErrorCode(__HResults.COR_E_DIVIDEBYZERO); + public class DivideByZeroException : ArithmeticException + { + public DivideByZeroException() + : base(SR.Arg_DivideByZero) + { + HResult = __HResults.COR_E_DIVIDEBYZERO; } - - public DivideByZeroException(String message, Exception innerException) - : base(message, innerException) { - SetErrorCode(__HResults.COR_E_DIVIDEBYZERO); + + public DivideByZeroException(String message) + : base(message) + { + HResult = __HResults.COR_E_DIVIDEBYZERO; } - protected DivideByZeroException(SerializationInfo info, StreamingContext context) : base(info, context) { + public DivideByZeroException(String message, Exception innerException) + : base(message, innerException) + { + HResult = __HResults.COR_E_DIVIDEBYZERO; } + + protected DivideByZeroException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } |