internal static string PropertyValue(this Dictionary<string, string> properties, string key) { string propValue; if (properties != null && properties.TryGetValue(key, out propValue)) { return propValue; } return null; }