Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/DNA/corlib/System/Delegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public override bool Equals(object obj) {
if (d == null) {
return false;
}
return d.targetObj == this.targetObj && d.targetMethod.Equals(this.targetMethod);
// DNA currently can't handle boxing an IntPtr, so use the '==' overload instead (which doesn't have boxing)
return d.targetObj == this.targetObj && d.targetMethod == this.targetMethod;
}

public override int GetHashCode() {
Expand Down Expand Up @@ -59,4 +60,4 @@ protected virtual Delegate RemoveImpl(Delegate d) {
}
}

#endif
#endif