ref keyword. I understood that when we use that keyword, we tell the compiler that we want to directly work with the memory address of the variable and not a copy of it (when using it inside a method).ref keyword is used both when writing the arguments during the method call like callMethod(ref variable) and also during declaring the parameters of a method, we use the keyword, like static void changeValue(ref int x).