public Threat([NotNull] ThreatModel model, [NotNull] XmlNode node) { _model = model; _node = node; _key = node.ChildNodes[0].InnerText; AnalyzeValue(node.ChildNodes[1]); }
public ParameterInfo([NotNull] ThreatModel model, [NotNull] XmlNode node) { _node = node; Name = node.ChildNodes[0].InnerText; Label = model.Properties.FirstOrDefault(x => string.CompareOrdinal(x.Name, Name) == 0)?.Label; Value = node.ChildNodes[1].InnerText; }