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

            return(" = " + result.Value);
        }
예제 #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);
        }