class myClass { int age; public int Age { get{return age;} set{age = value;} }Versus
class myClass { public int Age{get; set;} }What's the difference between these two? Are they both the same?
class myClass { int age; public int Age { get{return age;} set{age = value;} }Versus
class myClass { public int Age{get; set;} }What's the difference between these two? Are they both the same?
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.
Manas MohapatraPosted May 5, 2017, 7:51 AM
Amit GuptaPosted May 5, 2017, 7:44 AM
MayankPosted May 5, 2017, 7:26 AM
Amit GuptaPosted May 5, 2017, 7:13 AM