Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create [Flags] support to EnumGenerator<T> #57

Open
carusology opened this issue Aug 23, 2018 · 0 comments
Open

Create [Flags] support to EnumGenerator<T> #57

carusology opened this issue Aug 23, 2018 · 0 comments

Comments

@carusology
Copy link
Contributor

Background

The current implementation of the EnumGenerator<T> does not inspect the enum for the [Flags] attribute to determine if the enum values should be generated as a collection of values bitwise or'd together or as a set of individual and distinct values. It should. Additionally, the decision to use flags or non-flags behavior should be able to be overridden based upon a value in the constructor (something akin to bool useFlags).

Task

Add first class support for [Flags] enums in EnumGenerator<T>. By default, enums with the [Flags] attribute should be generating values with one or more values or'd together, and those lacking the attribute should do the current behavior. However, this can and should be able to be overridden on an enum-by-enum basis in the constructor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant