#if NET_4_0
static Exception CreateNIE ()
{
- return new NotSupportedException ("Derived classes must implement it");
+ return new NotImplementedException ("Derived classes must implement it");
}
public virtual Type GetType (string name, bool throwOnError, bool ignoreCase)
throw CreateNIE ();
}
+ [MonoTODO ("Always returns the same as GetModules")]
public virtual Module[] GetLoadedModules (bool getResourceModules)
{
throw CreateNIE ();
public virtual bool GlobalAssemblyCache {
get { throw CreateNIE (); }
}
+
+ public virtual bool IsDynamic {
+ get { return false; }
+ }
+
+ public override int GetHashCode ()
+ {
+ return base.GetHashCode ();
+ }
+
+ public static bool operator == (Assembly left, Assembly right)
+ {
+ if ((object)left == (object)right)
+ return true;
+ if ((object)left == null ^ (object)right == null)
+ return false;
+ return left.Equals (right);
+ }
+
+ public static bool operator != (Assembly left, Assembly right)
+ {
+ if ((object)left == (object)right)
+ return false;
+ if ((object)left == null ^ (object)right == null)
+ return true;
+ return !left.Equals (right);
+ }
#endif
}
}