От: | mDmitriy | ||
Дата: | 20.12.20 14:39 | ||
Оценка: |
[Flags]
public enum PhoneService
{
None = 0,
LandLine = 1,
Cell = 2,
Fax = 4,
Internet = 8,
Other = 16
}
...
PhoneService phoneService = PhoneService.Cell | PhoneService.Fax
int value = (int)phoneService