public static MultiStringValue Join(this MultiStringValue self, string[] items, bool trimDuplicates) { var list = new List <string>(self.Items); list.AddRange(items); return(trimDuplicates ? MultiStringValue.WithoutDuplicates(list.ToArray()) : new MultiStringValue(list.ToArray())); }
public static MultiStringValue Join(this MultiStringValue self, MultiStringValue other, bool trimDuplicates) { var list = new List <string>(self.Items); list.AddRange(other.Items); var items = list.ToArray(); return(trimDuplicates ? MultiStringValue.WithoutDuplicates(items) : new MultiStringValue(items)); }