What does the following code means?

Sep 5 2011 4:42 AM
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.

Answers (5)