Flags enums have been around since the beginning of C#. Are there any other old but obscure features that need looking into? Let me know Source code available at: github.com/JasperKent/Flags-Enum Remember to subscribe at ru-vid.com/show-UCqWQzlUDdllnLmtgfSgYTCA And if you liked the video, click the 👍.
If there was a definitive list of C# tutorials, this video belongs in the enum section. It is thorough and well presented. This is why I just subscribed to your channel (actually, your tutorials are top notch, but this just drives the point home.)
Great video on C#! I just started my channel dedicated to programming and I'm always looking for inspiration. Can't wait to see more of your content, keep it up!
I'd say avoid. Flags enums are limited to 32-bit when you use int-Enums. When you reach the limit of 32 entries, you have to workaround that limit, like reserving the last flag and using a second enum to hold the next set of data. Just use a simple class with bool Properties. Easy to understand, easy to extend in all sort of different ways. You could also use just ISet as a replacement on any enum. It will do the same and you can store the whole int-Range of entries in it.