When using flag enums in CSharp, did you know...
When we call ToString() on a flags enum value, it will print out each of the flag values being matched!
This is a huge readability boost, especially when debugging. Mentally flip-flopping between numeric and string representations can be tiring, so having it prepared for us in a convenient way is awesome!
Check out the full video:
• The Ultimate Beginner's Guide to Flags Enu...
----
📨 Sign up for my FREE email newsletter:
https://subscribe.devleader.ca
🗣️ Share with your network!
#csharp #dotnet #enums #binary #learntocode