internal static bool IsSet(InventoryType value, InventoryType bit) { if (value == bit) return true; return (((UInt32)value & (UInt32)bit) != 0); }