コード例 #1
0
        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()));
        }
コード例 #2
0
        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));
        }