Interview question: Can you return multiple values from a function in C#?
Yes, by using output parameters, we can return multiple values from a function in C#. A return statement can be used for returning only one value from a function. However, using output parameters, you can return two values from a function. [amazon_link asins=’007070368X,9352136640,1787287041,8120349172,B078NRPJT6,B011V10Z2O,B011V135LM,B0719KCBZT|1840787198,1491987650,1491988533,1119449278,B01AC6P7OU,B00RCIU1S4,B0036DUP1M,B06Y1V7SZC’ template=’ProductGrid’ store=’desibanjara22-21|desibanjaraco-21′ marketplace=’IN|UK’ link_id=’085f5b85-93b9-11e8-9df3-cd704103ff25′]