public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (adapter != null ? adapter.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)graphicsProfile;
         hashCode = (hashCode * 397) ^ (presentationParameters != null ? presentationParameters.GetHashCode() : 0);
         return(hashCode);
     }
 }
Esempio n. 2
0
 /// <summary>Gets the hash code for this object.</summary>
 public override int GetHashCode()
 {
     return(graphicsProfile.GetHashCode()
            ^ (adapter == null ? 0 : adapter.GetHashCode())
            ^ presentationParameters.GetHashCode());
 }
Esempio n. 3
0
 public override int GetHashCode()
 {
     return((_deviceType.GetHashCode() ^ _adapter.GetHashCode()) ^ _presentationParameters.GetHashCode());
 }