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