diff --git a/server/AyaNova/DataList/DataListFactory.cs b/server/AyaNova/DataList/DataListFactory.cs index 1c81e765..46f09b57 100644 --- a/server/AyaNova/DataList/DataListFactory.cs +++ b/server/AyaNova/DataList/DataListFactory.cs @@ -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}\""); } } - } -} \ No newline at end of file + + + internal static List GetListOfAllDataListKeyNames() + { + + List ret = new List(); + 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 \ No newline at end of file