private static Dictionary <string, bool?> GetValuesAsBools(TelemetryEvent item) { var values = new Dictionary <string, bool?>(StringComparer.OrdinalIgnoreCase); var e = item.GetEnumerator(); while (e.MoveNext()) { values.Add(e.Current.Key, e.Current.Value as bool?); } return(values); }