diff options
Diffstat (limited to 'src/mscorlib/src/System/OutOfMemoryException.cs')
-rw-r--r-- | src/mscorlib/src/System/OutOfMemoryException.cs | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/src/mscorlib/src/System/OutOfMemoryException.cs b/src/mscorlib/src/System/OutOfMemoryException.cs index 46d5195405..154d0f92e2 100644 --- a/src/mscorlib/src/System/OutOfMemoryException.cs +++ b/src/mscorlib/src/System/OutOfMemoryException.cs @@ -11,29 +11,35 @@ ** =============================================================================*/ -namespace System { - - using System; - using System.Runtime.Serialization; +using System; +using System.Runtime.Serialization; + +namespace System +{ [Serializable] - public class OutOfMemoryException : SystemException { - public OutOfMemoryException() - : base(GetMessageFromNativeResources(ExceptionMessageKind.OutOfMemory)) { - SetErrorCode(__HResults.COR_E_OUTOFMEMORY); + public class OutOfMemoryException : SystemException + { + public OutOfMemoryException() + : base(GetMessageFromNativeResources(ExceptionMessageKind.OutOfMemory)) + { + HResult = __HResults.COR_E_OUTOFMEMORY; } - - public OutOfMemoryException(String message) - : base(message) { - SetErrorCode(__HResults.COR_E_OUTOFMEMORY); + + public OutOfMemoryException(String message) + : base(message) + { + HResult = __HResults.COR_E_OUTOFMEMORY; } - - public OutOfMemoryException(String message, Exception innerException) - : base(message, innerException) { - SetErrorCode(__HResults.COR_E_OUTOFMEMORY); + + public OutOfMemoryException(String message, Exception innerException) + : base(message, innerException) + { + HResult = __HResults.COR_E_OUTOFMEMORY; } - protected OutOfMemoryException(SerializationInfo info, StreamingContext context) : base(info, context) { + protected OutOfMemoryException(SerializationInfo info, StreamingContext context) : base(info, context) + { } } } |