Beispiel #1
0
 public override int GetHashCode()
 {
     return(unchecked (GradientType.GetHashCode() + AlphaOnly.GetHashCode()));
 }
Beispiel #2
0
        /// <summary>
        /// Returns the hashcode for this object.
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            int StopsHashCode = Stops == null ? 0 : Stops.GetHashCode();

            return(HashCoder.GetHash(GradientType.GetHashCode(), StopsHashCode));
        }