Skip to content

Commit

Permalink
Implement Bool32.GetHashCode()
Browse files Browse the repository at this point in the history
  • Loading branch information
Syncaidius committed Jul 23, 2023
1 parent fe7b167 commit 2d10155
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Core/Silk.NET.Core/Miscellaneous/Bool32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ namespace Silk.NET.Core
/// </summary>
public uint Value { get; }

/// <summary>
/// Returns the hash code for this instance.
/// </summary>
/// <returns> A 32-bit signed integer hash code.</returns>
public override int GetHashCode()
{
return Value.GetHashCode();
}

/// <summary>
/// Compares the current <see cref="Bool32"/> to another <see cref="object"/>. Returns true if they are equal.
/// </summary>
Expand Down

0 comments on commit 2d10155

Please sign in to comment.