Example #1
0
        /// <summary>Serves as the default hash function.</summary>
        /// <returns>A hash code for the current object.</returns>
        public override int GetHashCode()
        {
            int c = HashUtil.HashCombine(LineWidth, Color, Fill);

            foreach (var element in Elements)
            {
                c = HashUtil.CodeCombine(c, element.GetHashCode());
            }
            return(c);
        }