private static Property CreateMultiItemProperty(string name, IEnumerable<object> values) { var prop = new Property() { Name = name }; var multiItemSet = new MultiItemSet(); multiItemSet.Values = new List<string>(); foreach (var x in values) multiItemSet.Values.Add(x.ToString()); prop.Set = multiItemSet; return prop; }
private static Property CreateMultiItemProperty(string name, IEnumerable<object> values) { var prop = new Property() { Name = name }; var multiItemSet = new MultiItemSet(); multiItemSet.Values = new List<string>(); foreach (var x in values) multiItemSet.Values.Add(x.ToString()); prop.Set = multiItemSet; return prop; }