public T Deserialize <T>(IEnumerable <string> values, bool explode) { if (typeof(T) == typeof(string)) { // Short-circuit for strings return((T)(object)string.Join(",", values));; } if (values == null) { throw new ArgumentNullException(nameof(values)); } if (SerializationHelpers.IsList(typeof(T), out Type? itemType)) { return((T)LiteralSerializer.Instance.DeserializeList(values, itemType)); } // We're not dealing with a list, so join the values back together return(LiteralSerializer.Instance.Deserialize <T>(string.Join(",", values))); }