private bool NextUnmappedRole(ref ControllerRole r) { const ControllerRole rMax = ControllerRole.Controller15 + 1; while (++r < rMax) { if (!RoleMap.IsRoleValueMapped((int)r)) { return(true); } } return(false); }