Saturday, 17 December 2016

Arguments vs Parameters in C#

Parameters :
A parameter is a variable in
a method definition.

ex :
public void MyMethod(string my param)
// your coding

Arguments :
when a method is called,the arguments
are the data you pass into the method's

ex :
string myarg1="This is my argument";

No comments:

Post a Comment