Hi friends,
I want to know that what's the implicit name of the parameter that gets passed into the set method/property of a class?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Jan 24, 2012, 11:58 AM
Value. The data type of the value parameter is defined by whatever data type the property is declared.
Thanks
VulpesPosted Jan 24, 2012, 11:11 AM
int myProperty;
public int MyProperty
{
get {return myProperty;}
set { myProperty = value;}
}