Skip to content
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.

Don't try to get exported types from dynamic modules #39

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions Wrapper/ToolbarWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -726,9 +726,14 @@ internal ToolbarTypes() {
}

internal static Type getType(string name) {
return AssemblyLoader.loadedAssemblies
.SelectMany(a => a.assembly.GetExportedTypes())
.SingleOrDefault(t => t.FullName == name);
Type type = null;
AssemblyLoader.loadedAssemblies.TypeOperation(t =>
{
if (t.FullName == name)
type = t;
});

return type;
}

internal static PropertyInfo getProperty(Type type, string name) {
Expand Down