新增 FlowScope Git 包雏形
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user