C# Flags Enum Explained - Deep Dive
Even if you've defined enums in C# decorated with the [Flags] attribute, you'll find this deep dive extremely informative.
In this video I take you under the hood and explain what's really going on and how you can use bitwise operations for enums and treat them as "Sets" that contain multiple possible values and how to use bitwise operations to answer questions such as
1. Does the set contain "X" element
2. Add element "X" to an existing set
3. Remove element "X" from an existing set
We also explore the bitwise Left Shift operator and how we can use it while defining our enum elements and their values.
Видео C# Flags Enum Explained - Deep Dive канала Shiv Kumar
In this video I take you under the hood and explain what's really going on and how you can use bitwise operations for enums and treat them as "Sets" that contain multiple possible values and how to use bitwise operations to answer questions such as
1. Does the set contain "X" element
2. Add element "X" to an existing set
3. Remove element "X" from an existing set
We also explore the bitwise Left Shift operator and how we can use it while defining our enum elements and their values.
Видео C# Flags Enum Explained - Deep Dive канала Shiv Kumar
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
14: Structs And Enums In C# | How To Use An Enum | C# Tutorial For Beginners | C Sharp TutorialWebSockets an Introduction and Deep DivePractical uses of bitwise operations - Implementing a Flag SystemProgramming Destination for 2021Flags and Program Status WordImprove Your Communication SkillsVar vs Dynamic in c# ( C# interview questions with answers)Advanced Dapper in C# - SQL Transactions, Mulitple DataSets, UDTs, and moreLet's Talk - Always use the "as" operator - No Thank youUnit Testing C# Code - Tutorial for BeginnersLet's Talk - Separate State from Behavior - Yes PLEASE!Enumeraciones de Flags - 31 - Tips C#C# enums in arabicC# Tutorial 4 Methods Enum161 BitFlagsWhat are Events? (C# Basics)12. How to program in C# - ENUMS - Beginner TutorialLearn How To Program In C# Part 20 - Foreach LoopWhat is CQRS and when to use it?Building/Debugging Alexa Apps using ASP.Net Core