Author: zoltan
Date: 2008-02-20 06:33:47 -0500 (Wed, 20 Feb 2008)
New Revision: 96237
Modified:
trunk/mcs/class/corlib/System.Reflection/AssemblyName.cs
trunk/mcs/class/corlib/System.Reflection/ChangeLog
Log:
2008-02-20 Zoltan Varga <[EMAIL PROTECTED]>
* AssemblyName.cs (ReferenceMatchesDefinition): Add error checking and
some
simple cases required by ikvm.
Modified: trunk/mcs/class/corlib/System.Reflection/AssemblyName.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyName.cs 2008-02-20
11:32:22 UTC (rev 96236)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyName.cs 2008-02-20
11:33:47 UTC (rev 96237)
@@ -356,6 +356,12 @@
[MonoTODO]
public static bool ReferenceMatchesDefinition (AssemblyName
reference, AssemblyName definition)
{
+ if (reference == null)
+ throw new ArgumentNullException ("reference");
+ if (definition == null)
+ throw new ArgumentNullException ("definition");
+ if (reference.Name != definition.Name)
+ return false;
throw new NotImplementedException ();
}
#endif
Modified: trunk/mcs/class/corlib/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ChangeLog 2008-02-20 11:32:22 UTC
(rev 96236)
+++ trunk/mcs/class/corlib/System.Reflection/ChangeLog 2008-02-20 11:33:47 UTC
(rev 96237)
@@ -1,3 +1,8 @@
+2008-02-20 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * AssemblyName.cs (ReferenceMatchesDefinition): Add error checking and
some
+ simple cases required by ikvm.
+
2008-02-18 Zoltan Varga <[EMAIL PROTECTED]>
* CustomAttributeTypedArgument.cs (.ctor): Convert arrays into a
collection of
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches