When Using Flag Enums in #CSharp, Did You Know... #dotnet #coding

preview_player
Показать описание
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:

----
🔔 Follow for more software engineering and dotnet topics!
📨 Sign up for my email newsletter:
🎬 Check out Dev Leader on YouTube for multiple full-length videos weekly!
🗣️ Share with your network!

#csharp #dotnet #enums #binary #learntocode
Рекомендации по теме
Комментарии
Автор

📌 Check out the full video:

🔔 Follow for more software engineering and dotnet topics!
📨 Sign up for my email newsletter:
🎬 Check out Dev Leader on YouTube for multiple full-length videos weekly!
🗣️ Share with your network!

DevLeader
welcome to shbcf.ru