As the title suggests, I'm wondering if there's a way to do a similar thing as in C# with flag enums, where if the object is printed to IO, it prints ...
As the title suggests, I'm wondering if there's a way to do a similar thing as in C# with flag enums, where if the object is printed to IO, it prints ...
I have a C#/WPF MVVM program that uses a flagged enum to track the types of search mode the user is currently in and to manipulate the background colo ...
I have a Flags enum, for example I want to be able to test the values of a variable of such a type, but there doesn't seem to be a clean way to do ...
I am trying to make an if condition on whether the flag 'ItemIsMovable' of a QGraphicsItem is enabled. Ideally something like: Here I am using the ...
I am just learning about the flags modifier and Enums in C#. Here is the Enum I am working with. I am new to using emuns like this (and C# in gener ...
Consider the following simple Flags Enum in C#: If I want to know whether one value contains another, I can write a simple extension method using t ...
I have an enum defined as follows It is then a property in a class public Common.Constants.Role.Roles Roles { get; set; } How would I set that en ...
I would like compare two flags and see if they have any common value. I'ld like having an extension method as weel in order to "speed up" coding (I'm ...
In the below example codes which uses IntFlag of enum in Python3, I can understand the first 5 behaviors. But I cannot understand the last 3 behaviors ...
I'd like to use named constants whereever possible instead of providing literal values or longish function signatures with a lot of boolean args. The ...
I have an [Flags] Enum that contains some datapoints that I want to collect. My goal is to display and bind each value(each bit) as an individual chec ...
I have an Enum with [Flags] attribute like this: And my query for EF like this: Now if I set the flagStatus = FlagStatus.Value1 the query works ...
I have this enum : and I would like have the columns of a table like this: I'm confused as to how I can store the enum since the user can have m ...
I am using typescript to declare enum of type flag as following And I received a decimal value such as 119. The values represent 119 are {Equal, No ...
I'm trying to get a List of strings of the values of an Flags Enum I have two enums I have a flagged enum setted. What I'm trying to do, is, fr ...
Given this enum: and this class: How can I get a list of object Match where property Result has the flag NotWon out of a List<Match> match ...
Given an object with a flag variable: An ObjectDataProvider to access the Flags And the Xceed CheckComboBox At this stage it is showing the ...
I would like to define a set of flags (subclassed from enum.Flag), with some flags which are defined based on others. This is similar to the white fla ...
I have a Flags enum and would like to toggle some values by its (long) value. I store the actual permission in the database by EF using a long fiel ...
I was looking at the summary of the StringSplitOptions enum and and then was surprised to see it has the Flags attribute applied to it. The Flags enu ...