using System.Collections.Generic;
public static void Main()
List<Tag> tags = new List<Tag>()
new Tag(id: "Tag1", val:true),
new Tag(id: "Tag2", val:true),
new Tag(id: "Tag3", val:false)
var dict = new Dictionary<string, bool>();
dict.Add(tag.Id, tag.Val);
bool tag3Value = dict["Tag3"];
Console.WriteLine(tag3Value);
public Tag(string id, bool val)
public string Id {get;set;}
public bool Val {get; set;}