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, 1:07 AM EDT
The above one is the property declaration in C#.
http://www.c-sharpcorner.com/UploadFile/puranindia/PropertiesInC-sharp05192009021149AM/PropertiesInC-sharp.aspx
Prabhu RajaRank #861 · 2.6K reputationPosted Sep 5, 2011, 12:47 AM EDT
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"
mansoor altaf67 reputationPosted Sep 5, 2011, 1:15 AM EDT
VulpesRank #55 · 29.2K reputationPosted Sep 5, 2011, 1:35 AM EDT
mansoor altaf67 reputationPosted Sep 5, 2011, 10:15 PM EDT