Skip to content

Commit

Permalink
Fix KeyNotFoundException in WithoutTypeInspector<TTypeInspector>
Browse files Browse the repository at this point in the history
+semver:patch
Fixes  #507
  • Loading branch information
Antoine Aubry committed Jun 26, 2020
1 parent bd37fab commit b34a3e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YamlDotNet/Serialization/BuilderSkeleton.cs
Expand Up @@ -271,7 +271,7 @@ Action<ITrackingRegistrationLocationSelectionSyntax<ITypeInspector>> where
public TBuilder WithoutTypeInspector<TTypeInspector>()
where TTypeInspector : ITypeInspector
{
return WithoutTypeInspector(typeof(ITypeInspector));
return WithoutTypeInspector(typeof(TTypeInspector));
}

/// <summary>
Expand Down

0 comments on commit b34a3e8

Please sign in to comment.