Variable Used For Output parameter not detected as "used", even though it is used in the BizTalk Orchestration
14:56 14 Feb 2024

I have a method like this:

CreateOrder(XmlDocument OrderData, out int OrderId);

This method is called from an Expression shape in an orchestration. However, during compilation, a warning like this comes up:

'OrderId' is initialized but its value is never used

OrderId is a variable created within the proper scope in the orchestration and the method is correctly called from an expression within that scope. Question is, why does the compiler flag this variable as unused?

c# visual-studio-2019 biztalk biztalk-2020