//--------------------------------------------------------------------- public static bool CanList(PermissionItem v) { return(Bitset8.GetBit(v.Permission, 0)); }
public static bool CanRead(PermissionItem v) { return(Bitset8.GetBit(v.Permission, 1)); }
public static bool CanDelete(PermissionType v) { return(Bitset8.GetBit((byte)v, 3)); }
public static bool CanManage(PermissionType v) { return(Bitset8.GetBit((byte)v, 4)); }
public static bool CanRead(PermissionType v) { return(Bitset8.GetBit((byte)v, 1)); }
public static bool CanWrite(PermissionType v) { return(Bitset8.GetBit((byte)v, 2)); }
public static bool CanManage(byte v) { return(Bitset8.GetBit(v, 4)); }
//--------------------------------------------------------------------- public static bool CanList(PermissionType v) { return(Bitset8.GetBit((byte)v, 0)); }
public static bool CanWrite(byte v) { return(Bitset8.GetBit(v, 2)); }
public static bool CanDelete(byte v) { return(Bitset8.GetBit(v, 3)); }
public static bool CanRead(byte v) { return(Bitset8.GetBit(v, 1)); }
//--------------------------------------------------------------------- public static bool CanList(byte v) { return(Bitset8.GetBit(v, 0)); }
public static bool CanManage(PermissionItem v) { return(Bitset8.GetBit(v.Permission, 4)); }
public static bool CanDelete(PermissionItem v) { return(Bitset8.GetBit(v.Permission, 3)); }
public static bool CanWrite(PermissionItem v) { return(Bitset8.GetBit(v.Permission, 2)); }