public static string Key(this Dictionary<string, object> dictionary) { string key; try { key = String(dictionary, "_key"); if (!ADocument.IsKey(key)) { key = null; } } catch (Exception) { key = null; } return key; }