Add matching get hash code method
This commit is contained in:
parent
52e7b2926f
commit
82dbb2a218
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user