Add matching get hash code method

This commit is contained in:
de4dot 2012-01-23 09:11:39 +01:00
parent 52e7b2926f
commit 82dbb2a218

View File

@ -1009,6 +1009,12 @@ namespace de4dot.blocks {
return compareMethodReferenceSignature(a, b);
}
public static int methodReferenceAndDeclaringTypeHashCode(MethodReference a) {
if (a == null)
return 0;
return methodReferenceHashCode(a) + typeReferenceHashCode(a.DeclaringType);
}
public static int methodReferenceHashCode(MethodReference a) {
if (a == null)
return 0;