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!
1 repost0 likes
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!
1 repost0 likes
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! Watch the full video here: https://youtu.be/_yUOrzTCpGU