예제 #1
0
 public override int GetHashCode()
 {
     return(unchecked (GradientType.GetHashCode() + AlphaOnly.GetHashCode()));
 }
예제 #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));
        }