/// <summary> /// Add a malware to the list. /// </summary> /// <param name="name">Malware name.</param> /// <param name="type">Malware type.</param> /// <param name="exactMatch">True if malware must exactly match with a software name or only need to contains all words in it, otherwise false.</param> public void Add(string name, MalwareType type, bool exactMatch = false) { Items.Add(new MalwareItem(name, type, exactMatch)); }
public MalwareItem(string name, MalwareType type, bool exactMatch = false) { Name = name; Type = type; ExactMatch = exactMatch; }