Some utility methods for collections.
Just a container for some static methods which make life somewhat easier.
コード例 #1
0
        }         // Equals

        // ----------------------------------------------------------------------
        public override int GetHashCode()
        {
            return(CollectionTool.ComputeHashCode(this));
        }         // GetHashCode
コード例 #2
0
        }         // GetHashCode

        // ----------------------------------------------------------------------
        /// <summary>
        /// Lists the contents of this collection.
        /// </summary>
        /// <returns>a string with the items of this collection</returns>
        public override string ToString()
        {
            return(CollectionTool.ToString(this));
        } // ToString
コード例 #3
0
        }         // Contains

        // ----------------------------------------------------------------------
        public override bool Equals(object obj)
        {
            return(CollectionTool.AreEqual(this, obj));
        }         // Equals