We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 062ca7c commit 3d7d078Copy full SHA for 3d7d078
EIV_Modules/Extensions/ModuleExtensions.cs
@@ -11,7 +11,7 @@ public static T GetModule<T>(this object obj) where T : IModule
11
12
public static List<T> GetModules<T>(this object obj) where T : IModule
13
{
14
- return (List<T>)ModuleSub.GetModuleList?.Invoke(obj, typeof(T));
+ return (List<T>)ModuleSub.GetModuleList?.Invoke(obj, typeof(T)).Select(x => x as T);
15
}
16
17
public static bool TryGetModule<T>(this object obj, out T out_t) where T : IModule
0 commit comments