ekonbenefits / impromptu-interface

Static interface to dynamic implementation (duck casting). Uses the DLR combined with Reflect.Emit.
Apache License 2.0
655 stars 67 forks source link

Updating ImpromptuInterface from 6.2.2 to 7.0.1 (latest version) #47

Closed Bronzato1 closed 2 years ago

Bronzato1 commented 2 years ago

My project currently references ImpromptuInterface 6.2.2 and it works great. I am in the process of updating all my nuget packages to latest version.

When updating ImpromptuInterface from 6.2.2 to 7.0.1 I got 2 errors:

My code:

if (Impromptu.GetMemberNames(sourceObject).Any(x => x == newPropertyPath)) { var newSourceObject = Impromptu.InvokeGet(sourceObject, newPropertyPath); }

It seems these methods does no longer exists. Any help is much appreciated.

jbtule commented 2 years ago

7.0 breaking change, those methods have moved to Dynamic.GetMemberNames and Dynamic.InvokeGet in Dynamitey. But they are identical and is a nuget dependency.

Bronzato1 commented 2 years ago

Good to know. Thanks !