46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
namespace CommonConsole
|
|
{
|
|
using CommonConsole.Schema;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
|
|
public class Program
|
|
{
|
|
public static void Main()
|
|
{
|
|
var jtext = File.ReadAllText("..\\..\\configuration.json");
|
|
var jmodel = JsonConvert.DeserializeObject<CordonelAppsDictionary>(jtext);
|
|
var types = new HashSet<String>();
|
|
|
|
foreach (var app in jmodel.Values)
|
|
{
|
|
if (app.Registers is null)
|
|
{
|
|
continue;
|
|
}
|
|
|
|
foreach (var reg in app.Registers.Values)
|
|
{
|
|
if (reg.Details is null)
|
|
{
|
|
continue;
|
|
}
|
|
|
|
foreach (var detail in reg.Details)
|
|
{
|
|
types.Add(detail.Type);
|
|
}
|
|
}
|
|
}
|
|
|
|
foreach (var type in types)
|
|
{
|
|
Console.WriteLine(type);
|
|
}
|
|
}
|
|
}
|
|
} |