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:
parent
76c773b0c7
commit
1aa56f904d
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue