You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes such code is hard to understand. It would be nice to have a feature to compile multiple booleans or enums into a single enum using some structure. Let's call it cell. Here's how i see it:
public cell SomeOptions {
bool Flag1,
bool Flag2,
bool Flag3
}
public void SomeMethod() {
SomeOptions options = new SomeOptions();
options.Flag2 = true;
if (options.Flag1) { } // True
if (options.Flag3) { } // False
}
And it would compile into the code above with enum and bitwise operations.