コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((CommandName != null ? CommandName.GetHashCode() : 0) * 397) ^ FirstLetter.GetHashCode());
     }
 }
コード例 #2
0
        public override int GetHashCode()
        {
            int result = CommandName.GetHashCode();

            result = (31 * result) + Eventcounts.GetHashCode();
            result = (31 * result) + (_cacheKey != null ? _cacheKey.GetHashCode() : 0);
            return(result);
        }
コード例 #3
0
        /// <summary>
        /// Returns a hash code for this instance.
        /// </summary>
        /// <returns>
        /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
        /// </returns>
        public override int GetHashCode()
        {
            int hash = 13;

            if (CommandName != null)
            {
                hash += CommandName.GetHashCode();
            }
            if (Filepath != null)
            {
                hash += Filepath.GetHashCode();
            }
            return(hash);
        }
コード例 #4
0
ファイル: CommandRegistration.cs プロジェクト: ewin66/clee
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (CommandName != null
             ? CommandName.GetHashCode()
             : 0);
         hashCode = (hashCode * 397) ^ (CommandType != null
             ? CommandType.GetHashCode()
             : 0);
         hashCode = (hashCode * 397) ^ (ArgumentType != null
             ? ArgumentType.GetHashCode()
             : 0);
         hashCode = (hashCode * 397) ^ (ImplementationType != null
             ? ImplementationType.GetHashCode()
             : 0);
         return(hashCode);
     }
 }
コード例 #5
0
 public override int GetHashCode()
 {
     return(CommandName.GetHashCode());
 }
コード例 #6
0
 public override int GetHashCode()
 {
     return(CommandName != null ? CommandName.GetHashCode() : 0);
 }