1) using tuples 2) using Class and objects 3.) ref and out keyworda
using out parameter
There are multiple ways to do it.1) by using struct/Class as return type 2) by passing parameters by ref
You can use out and ref for your requirement.