[Task] Add an extra check in Task.WaitAny to make sure the index returned is valid
[mono.git] / mcs / class / corlib / System.Security.Principal / IdentityNotMappedException.cs
index b8d124bde3ec516cf131bf1b51e4f1ede1f29857..3b8ec99801b96890960a704ab2b50d9f968c60d5 100644 (file)
@@ -26,7 +26,6 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
 
 using System.Globalization;
 using System.Runtime.InteropServices;
@@ -36,23 +35,31 @@ namespace System.Security.Principal {
 
        [Serializable]
        [ComVisible (false)]
-       public class IdentityNotMappedException : SystemException {
+       public sealed class IdentityNotMappedException : SystemException {
+
+               private IdentityReferenceCollection _coll;
 
                public IdentityNotMappedException ()
+                       : base (Locale.GetText ("Couldn't translate some identities."))
                {
                }
 
                public IdentityNotMappedException (string message)
+                       : base (message)
                {
                }
 
                public IdentityNotMappedException (string message, Exception inner)
+                       : base (message, inner)
                {
                }
 
-               [MonoTODO ("not implemented")]
                public IdentityReferenceCollection UnmappedIdentities {
-                       get { return null; }
+                       get {
+                               if (_coll == null)
+                                       _coll = new IdentityReferenceCollection ();
+                               return _coll;
+                       }
                }
 
                [MonoTODO ("not implemented")]
@@ -62,4 +69,3 @@ namespace System.Security.Principal {
        }
 }
 
-#endif