Method Parameter in C#
C# is having 4 parameter types which are: Value Parameter : Default parameter types.Only Input Reference (ref) Parameter : Input / Output Output (out) Parameter Parameter (params) Arrays Value Parameter Are used for passing parameters into methods by value.When a method is invoked, the values of actual parameter are assigned to the corresponding formal parameter. The values can be changed with in the method. The value of the actual parameter that is passed by value to a method is not changed made to the corresponding formal parameter within of the method. This is because the methods refer to only copies of those variables when they are passed by value. Reference Parameter (Pass By Reference) Used to pass parameters, a reference parameter does not create a new storage location. Instead it represents the same storage location as the actual parameter used in the method invocation. Reference parameter is used in situations where...