Skip to content

Instantly share code, notes, and snippets.

Created Jun 2, 2022
What would you like to do?
Activity a = new Activity("Root");
a.SetTag("key1", "value1");
a.SetTag("key2", "value2");
foreach (ref readonly KeyValuePair<string, object?> tag in a.EnumerateTagObjects())
Console.WriteLine($"{tag.Key}, {tag.Value}");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment