What is a parameter? Explain the new types of parameters introduced in C# 4.0.
A parameter is a special type of variable, which is used in a function to give a piece of information or input to a caller function. These inputs are known as arguments. In C#, the different types of parameters are as follows:
Value type - Refers that you do not require to provide any keyword with a parameter.
Reference type - Refers that you require to mention the ref keyword with a parameter.
Output type - Refers that you require to mention the out keyword with a parameter.