Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (containingType != null ? containingType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (fieldType != null ? fieldType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (fieldName != null ? fieldName.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (methodName != null ? methodName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (containingType != null ? containingType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)bindingFlags;
         hashCode = (hashCode * 397) ^ isGeneric.GetHashCode();
         hashCode = (hashCode * 397) ^ (parameterTypes != null ? parameterTypes.GetHashCode() : 0);
         return(hashCode);
     }
 }