aboutsummaryrefslogtreecommitdiff
path: root/src/Jellyfin.Extensions/Json/Converters/JsonPipeDelimitedCollectionConverter.cs
blob: 57378a360a836416cfcf4051fcaf9e317d85d1f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
namespace Jellyfin.Extensions.Json.Converters
{
    /// <summary>
    /// Convert Pipe delimited string to array of type.
    /// </summary>
    /// <typeparam name="T">Type to convert to.</typeparam>
    public sealed class JsonPipeDelimitedCollectionConverter<T> : JsonDelimitedCollectionConverter<T>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="JsonPipeDelimitedCollectionConverter{T}"/> class.
        /// </summary>
        public JsonPipeDelimitedCollectionConverter() : base()
        {
        }

        /// <inheritdoc />
        protected override char Delimiter => '|';
    }
}