* Type.cs (Equals): Remove a useless check.
svn path=/trunk/mcs/; revision=73806
2007-03-06 Zoltan Varga <vargaz@gmail.com>
+ * Type.cs (Equals): Remove a useless check.
+
* Type.cs: Rename Type:Equals(Type) to EqualsInternal, and add support for checking
UnderlyingSystemType. Fixes #81037.
}
public bool Equals (Type type) {
- // Avoid recursion
- if (Object.ReferenceEquals (UnderlyingSystemType, this))
- return EqualsInternal (type.UnderlyingSystemType);
- else
- return UnderlyingSystemType.EqualsInternal (type.UnderlyingSystemType);
+ return UnderlyingSystemType.EqualsInternal (type.UnderlyingSystemType);
}
[MethodImplAttribute(MethodImplOptions.InternalCall)]