public void addResult(DetectionResult result) { if (Results == null) { Results = new List <DetectionResult>(); } Results.Add(result); }
static string valueString(DetectionResult result) { if (String.IsNullOrWhiteSpace(result.Value)) { return(""); } return(" = " + result.Value); }
static DetectionResult lineToDetectionResult(string line) { string[] split = line.Split('='); DetectionResult result = new DetectionResult(); result.Name = split[0]; if (split.Length > 1) { result.Value = split[1]; } return(result); }