Esempio n. 1
0
        ///<summary>
        ///Serves as a hash function for a particular type. <see cref="M:System.Object.GetHashCode"></see> is suitable for use in hashing algorithms and data structures like a hash table.
        ///</summary>
        ///
        ///<returns>
        ///A hash code for the current <see cref="T:System.Object"></see>.
        ///</returns>
        ///<filterpriority>2</filterpriority>
        public override int GetHashCode()
        {
            int result = _name != null?_name.GetHashCode() : 0;

            result = 29 * result + (_uiForm != null ? _uiForm.GetHashCode() : 0);
            result = 29 * result + (_uiGrid != null ? _uiGrid.GetHashCode() : 0);
            return(result);
        }