Skip to content

Commit

Permalink
Fallback to get type arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtule committed Nov 3, 2023
1 parent 8c29229 commit f7737ca
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion Dynamitey/DynamicObjects/ExtensionToInstanceProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,22 @@ public override bool TryInvokeMember(System.Dynamic.InvokeMemberBinder binder, o

}catch(RuntimeBinderException)
{
types = null;
try
{
IList<Type> typeList = Dynamic.InvokeGet(binder,
"TypeArguments");
if (typeList != null)
{

types = typeList.ToArray();

}

}
catch (RuntimeBinderException)
{
types = null;
}
}

var name=InvokeMemberName.Create;
Expand Down
2 changes: 1 addition & 1 deletion Version.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<VersionPrefix>3.0.1</VersionPrefix>
<VersionPrefix>3.0.2</VersionPrefix>
</PropertyGroup>
</Project>

0 comments on commit f7737ca

Please sign in to comment.