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

Proposed Enhancement - GetAllBits and IsAllBIts() #14

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment
Open

Proposed Enhancement - GetAllBits and IsAllBIts() #14

GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I would like to propose adding exposure to the EnumInternals.AllBits (All 
Values Or together.) e.g. static Enums.GetAllBits<T>()  Additionally and 
complimenary, an Boolean IsAlBitsl<T>(this T value) extension would allow for 
quickly testing for All.

Thank you.

Original issue reported on code.google.com by karldirck on 15 Jan 2015 at 8:00

@GoogleCodeExporter
Copy link
Author

Well there's already Flags.GetUsedBits and Flags.HasAll - could you give more 
information about what you need that isn't covered by that? If you're trying to 
do this for a non-Flags enum, that's slightly odd.

Original comment by jonathan.skeet on 16 Jan 2015 at 7:03

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