Question: what is difference between ref and out parameter in .net?
Answer: The ref keyword on a method parameter causes a method to refer to the same variable that was passed as an input parameter for the same method. ... The out parameter can be used to return the values in the same variable passed as a parameter of the method. Any changes made to the parameter will be reflected in the variable.