How to set all bits of enum flag

I wonder a generic way for setting all bits of enum flag to 1. I just would like to have an enum which returns for all comparisons, regardless of other enums. And this code works; [Flags] public ...