Added few unsafe tests.
[mono.git] / mcs / mcs / roottypes.cs
index 03fb08da2bea2591772221be3f184e02979693ad..d2492778b419e13e8d28776ff1fb17aa030dd876 100644 (file)
@@ -3,10 +3,10 @@
 //
 // Author: Miguel de Icaza (miguel@gnu.org)
 //
-// Licensed under the terms of the GNU GPL
-//
-// (C) 2001 Ximian, Inc (http://www.ximian.com)
+// Dual licensed under the terms of the MIT X11 or GNU GPL
 //
+// Copyright 2001-2003 Ximian, Inc (http://www.ximian.com)
+// Copyright 2003-2008 Novell, Inc.
 //
 
 using System;
@@ -50,7 +50,7 @@ namespace Mono.CSharp
 
                public AnonymousTypeClass GetAnonymousType (ArrayList parameters)
                {
-                       ArrayList candidates = (ArrayList)anonymous_types [parameters.Count];
+                       ArrayList candidates = (ArrayList) anonymous_types [parameters.Count];
                        if (candidates == null)
                                return null;
 
@@ -61,7 +61,7 @@ namespace Mono.CSharp
                                                break;
                                }
 
-                               if (i == candidates.Count)
+                               if (i == parameters.Count)
                                        return at;
                        }
 
@@ -117,11 +117,6 @@ namespace Mono.CSharp
                        throw new InternalErrorException ("should not be called");
                }
 
-               public override MemberList FindMembers (MemberTypes mt, BindingFlags bf, MemberFilter filter, object criteria)
-               {
-                       throw new InternalErrorException ("should not be called");
-               }
-
                public override MemberCache MemberCache {
                        get { return PartialContainer.MemberCache; }
                }