Skip to content

Enum.HasFlag extension returns the wrong value #6

@jbruening

Description

@jbruening

You're lacking the actual flag comparison in your method. You should replace NET35Shims.cs#L50 with

ulong num = Convert.ToUInt64(value);
return ((Convert.ToUInt64(enumerated) & num) == num);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions