Skip to content

Commit

Permalink
Missed Unwrapped Target
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtule committed Jul 7, 2017
1 parent 9f29fd8 commit 162b790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dynamitey/DynamicObjects/ExtensionToInstanceProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public override bool TryGetMember(GetMemberBinder binder, out object result)
if (!base.TryGetMember(binder, out result))
{

var tInterface = CallTarget.GetType().GetTypeInfo().GetInterfaces().Single(it => it.Name == _extendedType.Name);
var tInterface = UnwrappedTarget().GetType().GetTypeInfo().GetInterfaces().Single(it => it.Name == _extendedType.Name);
var typeInfo = tInterface.GetTypeInfo();
result = new Invoker(binder.Name,
typeInfo.IsGenericType ? typeInfo.GetGenericArguments() : new Type[] {},null, this);
Expand Down

0 comments on commit 162b790

Please sign in to comment.