BHoM_Engine
BHoM_Engine copied to clipboard
Create Deconstruct(IOutput) to enable single line variable assignments from multi-output methods
trafficstars
Description:
add Deconstruct(IOutput) to allow syntax like:
var (a, b) = MyMultiOutputMethod();
Will try to get this added ASAP.
Link to msdn docs:
https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/deconstruct
Have discussed this offline with @IsakNaslundBh - this would need a wider discussion on the active upgrade to C#7. C#7 is available since we updated the .Net versions for BHoM and BHoM_Engine and an update now could be beneficial, but this needs to be discussed at a framework level first before actioning.