public DataSet MyDataset
{
get
{
return MyDs;
}
set
{
MyDs = value;
}
}
//i know that we are using here accessors and mutators. but is this the structure of class or function or what???
if it is a class than it should be like (public class [classname]{} etc) if it is a function than it should be like
(public void xyz(){} )
i am confused with the above structure , what it represents.???
thx in advance for the help.
Loading
Posted Sep 5, 2011, 5:07 AM
The above one is the property declaration in C#.
http://www.c-sharpcorner.com/UploadFile/puranindia/PropertiesInC-sharp05192009021149AM/PropertiesInC-sharp.aspx
mansoor altafPosted Sep 6, 2011, 2:15 AM
VulpesPosted Sep 5, 2011, 5:35 AM
mansoor altafPosted Sep 5, 2011, 5:15 AM
Prabhu RajaPosted Sep 5, 2011, 4:47 AM
For more about properties. click this link below
http://msdn.microsoft.com/en-us/library/aa288470(v=vs.71).aspx
---------------------------------------------------------------------
if this reply helps you. then click "This is Correct answer"