/// <summary>Gets the hash code for this object.</summary>
 public override int GetHashCode()
 {
     return(graphicsProfile.GetHashCode()
            ^ (adapter == null ? 0 : adapter.GetHashCode())
            ^ presentationParameters.BackBufferWidth.GetHashCode()
            ^ presentationParameters.BackBufferHeight.GetHashCode()
            ^ presentationParameters.BackBufferFormat.GetHashCode()
            ^ presentationParameters.AutoDepthStencilFormat.GetHashCode()
            ^ presentationParameters.MultiSampleQuality.GetHashCode()
            ^ presentationParameters.PresentationInterval.GetHashCode()
            ^ presentationParameters.FullScreenRefreshRateInHz.GetHashCode()
            ^ presentationParameters.DeviceWindowHandle.GetHashCode()
            ^ presentationParameters.Windowed.GetHashCode());
 }
Exemple #2
0
 /// <summary>Gets the hash code for this object.</summary>
 /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns>
 public override int GetHashCode()
 {
     return(graphicsProfile.GetHashCode()
            ^ (adapter == null ? 0 : adapter.GetHashCode())
            ^ presentationParameters.BackBufferWidth.GetHashCode()
            ^ presentationParameters.BackBufferHeight.GetHashCode()
            ^ presentationParameters.BackBufferFormat.GetHashCode()
            ^ presentationParameters.DepthStencilFormat.GetHashCode()
            ^ presentationParameters.MultiSampleCount.GetHashCode()
            ^ presentationParameters.PresentationInterval.GetHashCode()
            ^ presentationParameters.RenderTargetUsage.GetHashCode()
            ^ presentationParameters.RefreshRate.GetHashCode()
            ^ presentationParameters.DeviceWindowHandle.GetHashCode()
            ^ presentationParameters.IsFullScreen.GetHashCode());
 }