Fixed regression introduced with == operator in MemberInfo.

This commit is contained in:
jfrijters 2010-02-09 14:34:05 +00:00
Родитель 48f48cfa71
Коммит d1ec841c86
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -222,7 +222,7 @@ namespace IKVM.Reflection
public override int GetHashCode()
{
Type type = this.UnderlyingSystemType;
return type == this ? base.GetHashCode() : type.GetHashCode();
return ReferenceEquals(type, this) ? base.GetHashCode() : type.GetHashCode();
}
public virtual Type[] GetGenericArguments()