public void Result(Result result)
 {
     foreach (var output in this.outputs)
     {
         output.Result(result);
     }
 }
        private static string GetName(Result result)
        {
            string name = string.Format(
                "{0}{1}{2}",
                result.Name,
                string.IsNullOrEmpty(result.Version) ? string.Empty : " ",
                result.Version);

            if (!string.IsNullOrEmpty(result.Url))
            {
                name = string.Format("<a href=\"{0}\">{1}</a>", result.Url, name);
            }

            return name;
        }
 public void Result(Result result)
 {
     this.results.Add(result);
 }
        private static string GetName(Result result)
        {
            string name = string.Format(
                "{0}{1}{2}",
                result.Name,
                string.IsNullOrEmpty(result.Version) ? string.Empty : " ",
                result.Version);

            if (!string.IsNullOrEmpty(result.Url))
            {
                name = string.Format("{0} ({1})", name, result.Url);
            }

            return name;
        }
Example #5
0
 public void Result(Result result)
 {
     this.results.Add(result);
 }