mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-19 20:09:03 -07:00
25 lines
719 B
C#
25 lines
719 B
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace MediaBrowser.Common.Json.Converters
|
|
{
|
|
/// <summary>
|
|
/// Convert Pipe delimited string to array of type.
|
|
/// </summary>
|
|
/// <typeparam name="T">Type to convert to.</typeparam>
|
|
public sealed class JsonPipeDelimitedArrayConverter<T> : JsonDelimitedArrayConverter<T>
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="JsonPipeDelimitedArrayConverter{T}"/> class.
|
|
/// </summary>
|
|
public JsonPipeDelimitedArrayConverter() : base()
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override char Delimiter => '|';
|
|
}
|
|
}
|