2
Vote

[ImportingContsructor] doesn't work with an open generic.

description

To fix add the following to TypeHelper
 
public static bool IsReflectionParameterImportDefinition(ImportDefinition definition)
    {
        return definition.GetType().Name.Equals("ReflectionParameterImportDefinition");
    }
 
and change: if (!exports.Any() && TypeHelper.IsReflectionMemberImportDefinition(definition))
 
to: if (!exports.Any() && (TypeHelper.IsReflectionMemberImportDefinition(definition) || TypeHelper.IsReflectionParameterImportDefinition(definition)))

comments

dancemonkey wrote Sep 17, 2010 at 3:08 AM

been looking on how to solve this, thank you.

wrote Feb 14, 2013 at 7:47 PM