1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Added Generate<T>

This commit is contained in:
Brian Fiete 2023-11-19 02:10:39 -05:00
parent 76c773b0c7
commit 1aa56f904d

View file

@ -119,6 +119,11 @@ static class HashCode
return HashHelper<T>.Get(value);
}
public static int Generate<T>(T value)
{
return HashHelper<T>.Get(value);
}
public static int Get<T>(T value) where T : IHashable
{
if (value == null)