namespace KubernetesWorkflow { public class PodAnnotations { private readonly Dictionary annotations = new Dictionary(); public void Add(string key, string value) { annotations.Add(key, value); } public PodAnnotations Clone() { var result = new PodAnnotations(); foreach (var entry in annotations) result.Add(entry.Key, entry.Value); return result; } public void Clear() { annotations.Clear(); } internal Dictionary GetAnnotations() { return annotations; } } }