Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((DisplayText != null ? DisplayText.GetHashCode() : 0) * 397) ^ (CompletionText != null ? CompletionText.GetHashCode() : 0));
     }
 }
Example #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (DisplayText != null ? DisplayText.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FullText != null ? FullText.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (EvalText != null ? EvalText.GetHashCode() : 0);
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            var hashCode = 17 * DisplayText.GetHashCode();

            if (Snippet != null)
            {
                hashCode += 31 * Snippet.GetHashCode();
            }

            return(hashCode);
        }
Example #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = DisplayText.GetHashCode();
         result = (result * 397) ^ RangeStart;
         result = (result * 397) ^ RangeEnd;
         result = (result * 397) ^ Note.GetHashCode();
         result = (result * 397) ^ (AnnotationName == null ? 0 : AnnotationName.GetHashCode());
         return(result);
     }
 }
Example #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (TheStack != null ? TheStack.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Mode;
         hashCode = (hashCode * 397) ^ (TrueArmText != null ? TrueArmText.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FalseArmText != null ? FalseArmText.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DisplayText != null ? DisplayText.GetHashCode() : 0);
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (DisplayText.Length != 0)
            {
                hash ^= DisplayText.GetHashCode();
            }
            if (Value.Length != 0)
            {
                hash ^= Value.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (DisplayText.Length != 0)
            {
                hash ^= DisplayText.GetHashCode();
            }
            if (Icon.Length != 0)
            {
                hash ^= Icon.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #8
0
 public override int GetHashCode()
 {
     return(DisplayText.GetHashCode());
 }
Example #9
0
 public virtual int GetOverloadGroupHashCode()
 {
     return(DisplayText.GetHashCode());
 }