You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
723 B
25 lines
723 B
using System;
|
|
using System.ComponentModel;
|
|
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace MediaBrowser.Common.Json.Converters
|
|
{
|
|
/// <summary>
|
|
/// Convert comma delimited string to array of type.
|
|
/// </summary>
|
|
/// <typeparam name="T">Type to convert to.</typeparam>
|
|
public sealed class JsonCommaDelimitedArrayConverter<T> : JsonDelimitedArrayConverter<T>
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="JsonCommaDelimitedArrayConverter{T}"/> class.
|
|
/// </summary>
|
|
public JsonCommaDelimitedArrayConverter() : base()
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override char Delimiter => ',';
|
|
}
|
|
}
|