JasperFx / lamar

Fast Inversion of Control Tool and Successor to StructureMap
https://jasperfx.github.io/lamar
MIT License
563 stars 118 forks source link

Enhance MethodCall to support assigning the result to variables #268

Closed jeremydmiller closed 3 years ago

jeremydmiller commented 3 years ago

Add a new switch on MethodCall so you can have the ReturnVariable also be an assignment. Something like:

MethodCall @call;

@call.ReturnAction = ReturnAction.Return/Assign;