Ejemplo n.º 1
0
 public void addResult(DetectionResult result)
 {
     if (Results == null)
     {
         Results = new List <DetectionResult>();
     }
     Results.Add(result);
 }
Ejemplo n.º 2
0
        static string valueString(DetectionResult result)
        {
            if (String.IsNullOrWhiteSpace(result.Value))
            {
                return("");
            }

            return(" = " + result.Value);
        }
Ejemplo n.º 3
0
        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);
        }