Daniel15 / RouteJs

JavaScript URL routing for ASP.NET MVC and WebForms
84 stars 19 forks source link

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

Closed Daniel15 closed 11 years ago

Daniel15 commented 11 years ago

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 commented 11 years ago

This has been fixed in the 1.1.4 release.