This commit is contained in:
2020-01-21 18:06:54 +00:00
parent e1360ca467
commit 7068c961bf

View File

@@ -1,9 +1,12 @@
using System.Collections.Generic;
using AyaNova.Biz;
using System.Linq;
namespace AyaNova.DataList
{
internal static class DataListFactory
{
{
internal static IAyaDataList GetAyaDataList(string ListKey)
{
switch (ListKey)
@@ -14,5 +17,25 @@ namespace AyaNova.DataList
throw new System.ArgumentOutOfRangeException($"DataListFactory: Unknown list \"{ListKey}\"");
}
}
}
}
internal static List<string> GetListOfAllDataListKeyNames()
{
List<string> ret = new List<string>();
System.Reflection.Assembly ass = System.Reflection.Assembly.GetEntryAssembly();
foreach (System.Reflection.TypeInfo ti in ass.DefinedTypes)
{
if (ti.ImplementedInterfaces.Contains(typeof(IAyaDataList)))
{
ret.Add(ti.Name);
}
}
return ret;
}
}//eoc
}//eons