Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Icon != null ? Icon.GetHashCode() : 0) ^ (Markup != null ? Markup.GetHashCode() : 0));
     }
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            const int MagicValue = -1521134295;
            var       hashCode   = -1211575830;

            hashCode = (hashCode * MagicValue) + Markup?.GetHashCode() ?? 0;
            hashCode = (hashCode * MagicValue) + ExpectedMarkers?.GetHashCode() ?? 0;

            return(hashCode);
        }