Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle when types can't be loaded from assembly #24

Closed
Daniel15 opened this issue Sep 4, 2013 · 1 comment
Closed

Handle when types can't be loaded from assembly #24

Daniel15 opened this issue Sep 4, 2013 · 1 comment

Comments

@Daniel15
Copy link
Owner

Daniel15 commented Sep 4, 2013

As per #22 - This looks like a slightly better fix: http://haacked.com/archive/2012/07/23/get-all-types-in-an-assembly.aspx

    try
    {
        return assembly.GetTypes();
    }
    catch (ReflectionTypeLoadException e)
    {
        return e.Types.Where(t => t != null);
    }
Daniel15 added a commit that referenced this issue Sep 4, 2013
… only return the types that were loaded successfully. Closes #22 and #24
@Daniel15 Daniel15 closed this as completed Sep 4, 2013
@Daniel15
Copy link
Owner Author

This has been fixed in the 1.1.4 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant