Skip to content

Commit

Permalink
Use TypeInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-xu committed Aug 1, 2015
1 parent a58eb8a commit f3dbc59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ninject/Selection/Selector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public Selector(IConstructorScorer constructorScorer, IEnumerable<IInjectionHeur
/// <returns>The selected constructor, or <see langword="null"/> if none were available.</returns>
public virtual IEnumerable<ConstructorInfo> SelectConstructorsForInjection(Type type)
{
if (type.IsSubclassOf(typeof(MulticastDelegate)))
if (type.GetTypeInfo().IsSubclassOf(typeof(MulticastDelegate)))
return null;
var tInfo = type.GetTypeInfo();
var constructors = tInfo.DeclaredConstructors.FilterPublic(Settings.InjectNonPublic);
Expand Down

0 comments on commit f3dbc59

Please sign in to comment.