public VSOOutput(VSOOutput output) { URL = output.URL; ProjectName = output.ProjectName; IterationName = output.IterationName; BuildDefinitionName = output.BuildDefinitionName; Name = output.Name; }
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); }