Example #1
0
 public VSOOutput(VSOOutput output)
 {
     URL                 = output.URL;
     ProjectName         = output.ProjectName;
     IterationName       = output.IterationName;
     BuildDefinitionName = output.BuildDefinitionName;
     Name                = output.Name;
 }
Example #2
0
        public static VSOOutput Deserialize(OutputValues objOutputValues, string name)
        {
            var output = new VSOOutput();

            foreach (var prop in AllProperties)
            {
                var converter = TypeDescriptor.GetConverter(prop.PropertyType);
                if (converter.CanConvertTo(typeof(string)))
                {
                    prop.SetValue(output, converter.ConvertFrom(objOutputValues[prop.Name, string.Empty]));
                }
            }

            return(output);
        }