![c# - Is there a way to cast a generic enum value to an UInt64 value without allocating? - Stack Overflow c# - Is there a way to cast a generic enum value to an UInt64 value without allocating? - Stack Overflow](https://i.stack.imgur.com/TN5lU.png)
c# - Is there a way to cast a generic enum value to an UInt64 value without allocating? - Stack Overflow
![design - C# is it acceptable to create a generic class and use an enum as generic type? - Software Engineering Stack Exchange design - C# is it acceptable to create a generic class and use an enum as generic type? - Software Engineering Stack Exchange](https://i.stack.imgur.com/kOaYk.png)
design - C# is it acceptable to create a generic class and use an enum as generic type? - Software Engineering Stack Exchange
Dmitry Ivanov on Twitter: "Ok! We need Zero-Memory-Traffic cast from `int` to generic `enum`! Well, you can use `https://t.co/JaP3NK8tGA` in 2k19 but @JetBrainsRider has to work with @dotnet 3.5 (for @unity3d). What
![Before C# 7.3 arrives how to get generic method constrained to Enums to compile/work - Stack Overflow Before C# 7.3 arrives how to get generic method constrained to Enums to compile/work - Stack Overflow](https://i.stack.imgur.com/Yaz42.png)