Closed LuvForAirplanes closed 3 years ago
You have type inception. type.GetType()
is equivalant to typeof(ICustomersService).GetType()
, you end up getting the type of types. you want Impromptu.DynamicActLike(expando, type );
Oh, gotcha!!! Wow, I thought I knew C# until I started dabbling in the underlying type system and reflection...
I'm getting his exception when I try to dynamically get a type:
The exception occurs on this line: https://github.com/ekonbenefits/impromptu-interface/blob/master/ImpromptuInterface/src/EmitProxy/BuildProxy.cs#L399
And here is my code:
The reason I have to do type.GetType(), is because the type handed into the method could be anything.
@jbtule is this a bug?