using System.Collections.Generic;
public const string FEATURE_KEY_DISABLE_SEATBELT_DETECTION = "DISABLE_SEATBELT_DETECTION";
public const string FEATURE_KEY_WIFI_HOTSPOT = "WIFI_HOTSPOT";
public const string FEATURE_KEY_DISABLE_LIVESTREAMING = "DISABLE_LIVESTREAMING";
public static void Main()
var switchedOffEvents = new Dictionary<EventType, string> {
{ EventType.Seatbelt, FEATURE_KEY_DISABLE_SEATBELT_DETECTION }
var featureSwitchesMap = new Dictionary<string, bool>()
{ FEATURE_KEY_DISABLE_SEATBELT_DETECTION, false },
{ FEATURE_KEY_WIFI_HOTSPOT, true },
{ FEATURE_KEY_DISABLE_LIVESTREAMING, true }
var eventTypeComingFromLm = EventType.Seatbelt;
foreach (var feature in switchedOffEvents)
var eventType = feature.Key;
var eventSwitch = feature.Value;
if (featureSwitchesMap.ContainsKey(eventSwitch) && !featureSwitchesMap[eventSwitch] && eventType == eventTypeComingFromLm)
Console.WriteLine("{0} is disabled", feature);