/// <summary> /// Returns the result of bitwise and for value and bitwise not of the flag. /// </summary> /// <typeparam name="T">An enumeration type</typeparam> /// <param name="value">An enumeration value</param> /// <param name="flag">An enumeration value</param> /// <returns>Value with the specified flag unset</returns> public static T UnsetFlag <T>(T value, T flag) where T : struct, E => EnumCompiledCache <T> .UnsetFlag(value, flag);