This commit is contained in:
@@ -35,6 +35,23 @@ namespace AyaNova.DataList
|
||||
return ret;
|
||||
}
|
||||
|
||||
//Verify listkey
|
||||
internal static bool ListKeyIsValid(string listKey)
|
||||
{
|
||||
|
||||
System.Reflection.Assembly ass = System.Reflection.Assembly.GetEntryAssembly();
|
||||
|
||||
foreach (System.Reflection.TypeInfo ti in ass.DefinedTypes)
|
||||
{
|
||||
if (!ti.IsAbstract && ti.ImplementedInterfaces.Contains(typeof(IDataListProcessing)))
|
||||
{
|
||||
if (ti.Name == listKey)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
}//eoc
|
||||
}//eons
|
||||
Reference in New Issue
Block a user