c# - What are the benefits of using enum-flags? -


i wonder benefits of using enum-flags instead of boolean fields (besides better performance , cleaner code)...

flags enumerations used masking bit fields , doing bitwise comparisons. correct design use when multiple enumeration values can specified @ same time.

as metioned above nothing more correct design, guess matters most.


Comments

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -