* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / corlib / System.Collections.Generic / KeyNotFoundException.cs
index c23e67b9e7cf8643540e5a6287d44f5a6b205e70..3902ee5d65ad22f39d8b82dbb9d11ba1eced6700 100644 (file)
@@ -31,21 +31,21 @@ using System;
 using System.Runtime.InteropServices;
 using System.Runtime.Serialization;
 
-namespace System.Collections.Generic
-{
-        public class KeyNotFoundException : SystemException, ISerializable
-        {
-                public KeyNotFoundException ()
-                        : base () {}
+namespace System.Collections.Generic {
+       [ComVisible(true)]
+       [Serializable]
+       public class KeyNotFoundException : SystemException, ISerializable {
+               public KeyNotFoundException ()
+                       : base ("The given key was not present in the dictionary.") {}
 
-                public KeyNotFoundException (string message)
-                        : base (message) {}
+               public KeyNotFoundException (string message)
+                       : base (message) {}
 
-                public KeyNotFoundException (string message, Exception inner)
-                        : base (message, inner) {}
+               public KeyNotFoundException (string message, Exception inner)
+                       : base (message, inner) {}
 
-                protected KeyNotFoundException (SerializationInfo info, StreamingContext context)
-                        : base (info, context) {}
-        }
+               protected KeyNotFoundException (SerializationInfo info, StreamingContext context)
+                       : base (info, context) {}
+       }
 }
 #endif