Friday, April 14, 2017

public enum Whatever : uint

This is a C# inheritance trick to get an enum to use a uint instead of an int under the hood. You may inherit from long and byte as well. Yay!

No comments:

Post a Comment