public void AddMetadata(string group, string key, string value) { Dictionary<string, string> dict = null; if (this.metadata.ContainsKey(group)) { dict = this.metadata[group]; } else { dict = new Dictionary<string, string>(); this.metadata.Add(group, dict); } dict[key] = value; }