This commit is contained in:
@@ -11,10 +11,10 @@ namespace AyaNova.DataList
|
||||
//Instantiate list object specified
|
||||
//this is safe as it's only attempting to load assemblies in the AyaNova.DataList namespace so can't attempt to instantiate some random object or nefarious object
|
||||
//returns null if doesn't exist
|
||||
internal static IDataList GetAyaDataList(string ListKey)
|
||||
internal static IDataListProcessing GetAyaDataList(string ListKey)
|
||||
{
|
||||
System.Reflection.Assembly ass = System.Reflection.Assembly.GetEntryAssembly();
|
||||
return ass.CreateInstance($"AyaNova.DataList.{ListKey}") as IDataList;
|
||||
return ass.CreateInstance($"AyaNova.DataList.{ListKey}") as IDataListProcessing;
|
||||
}
|
||||
|
||||
//List all the datalist types available
|
||||
@@ -27,7 +27,7 @@ namespace AyaNova.DataList
|
||||
|
||||
foreach (System.Reflection.TypeInfo ti in ass.DefinedTypes)
|
||||
{
|
||||
if (!ti.IsAbstract && ti.ImplementedInterfaces.Contains(typeof(IDataList)))
|
||||
if (!ti.IsAbstract && ti.ImplementedInterfaces.Contains(typeof(IDataListProcessing)))
|
||||
{
|
||||
ret.Add(ti.Name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user