hello guys how r u ?
my question is that, how can we call a method through the property in console application ? like
this.anyproperty.anymethod();
is there any example code of program send me
Reply soon
Thanks.
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.
VulpesPosted Jan 4, 2012, 4:20 AM
Faisal AnsariPosted Jan 4, 2012, 5:17 AM
AartiPosted Jan 4, 2012, 4:19 AM
as per my knowledge, we can call methods by using getter and setter properties
public String FileName
{
get { return fileName; }
set
{
fileName = value;
parseXmlFile(); //function name
}
}