예제 #1
0
 public Threat([NotNull] ThreatModel model, [NotNull] XmlNode node)
 {
     _model = model;
     _node  = node;
     _key   = node.ChildNodes[0].InnerText;
     AnalyzeValue(node.ChildNodes[1]);
 }
예제 #2
0
 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;
 }