mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-05-06 03:32:57 +00:00
LoadGenerated bug
This commit is contained in:
parent
73fb67b860
commit
33f6933693
@ -142,7 +142,7 @@ public static class Warehouse
|
||||
}
|
||||
|
||||
var enumsTypes = (Type[])generatedType.GetProperty("Enums").GetValue(null);
|
||||
foreach (var t in recordTypes)
|
||||
foreach (var t in enumsTypes)
|
||||
{
|
||||
PutTemplate(new TypeTemplate(t));
|
||||
}
|
||||
@ -753,6 +753,7 @@ public static class Warehouse
|
||||
/// <param name="template">Resource template.</param>
|
||||
public static void PutTemplate(TypeTemplate template)
|
||||
{
|
||||
Console.WriteLine(template.ClassName);
|
||||
if (templates[template.Type].ContainsKey(template.ClassId))
|
||||
throw new Exception($"Template with same class Id already exists. {templates[template.Type][template.ClassId].ClassName} -> {template.ClassName}");
|
||||
|
||||
|
@ -48,7 +48,7 @@ using System.Text;
|
||||
using Esiur.Analysis.Signals;
|
||||
using Esiur.Analysis.Units;
|
||||
using Esiur.Analysis.Fuzzy;
|
||||
|
||||
|
||||
namespace Test
|
||||
{
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user