|
@@ -80,7 +80,7 @@ public class SysConstService : IDynamicApiController, ITransient
|
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
|
private List<Type> GetConstAttributeList()
|
|
private List<Type> GetConstAttributeList()
|
|
|
{
|
|
{
|
|
|
- return AppDomain.CurrentDomain.GetAssemblies().SelectMany(u => u.GetExportedTypes())
|
|
|
|
|
|
|
+ return AppDomain.CurrentDomain.GetAssemblies().SelectMany(u => u.GetTypes())
|
|
|
.Where(u => u.CustomAttributes.Any(c => c.AttributeType == typeof(ConstAttribute))).ToList();
|
|
.Where(u => u.CustomAttributes.Any(c => c.AttributeType == typeof(ConstAttribute))).ToList();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|