diff options
Diffstat (limited to 'src/mscorlib/src/System/Collections/Generic/KeyNotFoundException.cs')
-rw-r--r-- | src/mscorlib/src/System/Collections/Generic/KeyNotFoundException.cs | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/src/mscorlib/src/System/Collections/Generic/KeyNotFoundException.cs b/src/mscorlib/src/System/Collections/Generic/KeyNotFoundException.cs index 1cd18cf808..7b552d1192 100644 --- a/src/mscorlib/src/System/Collections/Generic/KeyNotFoundException.cs +++ b/src/mscorlib/src/System/Collections/Generic/KeyNotFoundException.cs @@ -13,32 +13,37 @@ ** =============================================================================*/ -namespace System.Collections.Generic { - - using System; - using System.Runtime.Remoting; - using System.Runtime.Serialization; +using System; +using System.Runtime.Remoting; +using System.Runtime.Serialization; + +namespace System.Collections.Generic +{ [Serializable] - public class KeyNotFoundException : SystemException, ISerializable { - - public KeyNotFoundException () - : base(Environment.GetResourceString("Arg_KeyNotFound")) { + public class KeyNotFoundException : SystemException, ISerializable + { + public KeyNotFoundException() + : base(Environment.GetResourceString("Arg_KeyNotFound")) + { SetErrorCode(System.__HResults.COR_E_KEYNOTFOUND); } - - public KeyNotFoundException(String message) - : base(message) { + + public KeyNotFoundException(String message) + : base(message) + { SetErrorCode(System.__HResults.COR_E_KEYNOTFOUND); } - - public KeyNotFoundException(String message, Exception innerException) - : base(message, innerException) { + + public KeyNotFoundException(String message, Exception innerException) + : base(message, innerException) + { SetErrorCode(System.__HResults.COR_E_KEYNOTFOUND); } - protected KeyNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) { - } + protected KeyNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } } } |