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()));
        }
Example #2
0
 public override int GetHashCode()
 {
     return(Method.Name.GetHashCode() ^ Signature.GetHashCode() ^ IsConstructor.GetHashCode());
 }
Example #3
0
 public override int GetHashCode()
 {
     return(Signature.GetHashCode());
 }
Example #4
0
 public override int GetHashCode()
 {
     return((Method != null ? Method.Name.GetHashCode() : 0) ^ Signature.GetHashCode() ^ IsConstructor.GetHashCode() ^ RewritenGenericParametersCount);
 }