public void GetHashCode_ForEqualObjects() { var signature1 = new MethodSignature(typeof(int), new[] { typeof(double), typeof(string) }, 12); var signature2 = new MethodSignature(typeof(int), new[] { typeof(double), typeof(string) }, 12); Assert.That(signature1.GetHashCode(), Is.EqualTo(signature2.GetHashCode())); }
public override int GetHashCode() { return(Method.Name.GetHashCode() ^ Signature.GetHashCode() ^ IsConstructor.GetHashCode()); }
public override int GetHashCode() { return(Signature.GetHashCode()); }
public override int GetHashCode() { return((Method != null ? Method.Name.GetHashCode() : 0) ^ Signature.GetHashCode() ^ IsConstructor.GetHashCode() ^ RewritenGenericParametersCount); }