using System.Collections.Generic;
public static void Main()
List<trap> test = new List<trap>();
test.Add(new trap(@"value nb-i"));
List<string> l = new List<string>(new string[] {"value nb-1","value nb-2","value nb-3"});
foreach (var t in test.FirstOrDefault(x => x.Name == "test").ToList())