I have a class a binary masque:
public class Masque
{
public bool MasquerAdresse { get; set; }
public bool MasquerCpVille { get; set; }
public bool MasquerTelephone { get; set; }
public bool MasquerFax { get; set; }
public bool MasquerEmail { get; set; }
public bool MasquerNom { get; set; }
}
and in the database I have a binary masque field: when i have the value 1=> MasquerAdresse is true, 2 =>MasquerCpVille is true, 4=> MasquerTelephone is true 3=> MasquerAdresse and MasquerCpVille are true etc..., which is the best methode to decode this binary masque in c#