I am new to C#. I\'ve tried this with out parameter in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Firs
ref means that you are passing a reference to the variable that has been declared and initialized, before calling the method, and that the method can modify the value of that variable.
out means you are passing a reference to the variable that has been declared but not yet initialized, before calling the method, and that the method must initialize or set it's value before returning.