Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Material?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ IsShadowCaster.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hash = 17;
         hash = hash * 23 + Material.GetHashCode();
         hash = hash * 23 + IsShadowCaster.GetHashCode();
         hash = hash * 23 + IsShadowReceiver.GetHashCode();
         return(hash);
     }
 }