17 lines
409 B
C#
17 lines
409 B
C#
using System.Collections.Generic;
|
|
using FlowScope.Data;
|
|
|
|
namespace FlowScope.Config
|
|
{
|
|
public sealed class JsonConfigParser : IConfigParser
|
|
{
|
|
public string Format => "json";
|
|
|
|
public IReadOnlyList<T> ParseRows<T>(string fileName, string text)
|
|
where T : class, IConfigRow
|
|
{
|
|
return ReactivePropertyJsonConverter.DeserializeArray<T>(text);
|
|
}
|
|
}
|
|
}
|