Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         if (Target != null)
         {
             hash = hash * 23 + Target.GetHashCode();
         }
         if (Material != null)
         {
             hash = hash * 23 + Material.GetHashCode();
         }
         if (Mesh != null)
         {
             hash = hash * 23 + Mesh.GetHashCode();
         }
         hash = hash * 23 + Blend.GetHashCode();
         hash = hash * 23 + Clip.GetHashCode();
         hash = hash * 23 + BlendMode.GetHashCode();
         hash = hash * 23 + ClipRect.GetHashCode();
         return(hash);
     }
 }