static ScanTypes getByValue(int value) { var r = _map[value]; if (r == null) { throw Exception("`value` Not a supported ScanTypes!"); } return r; }