dataset as a class property...

  • Thread starter Thread starter Brad Pears
  • Start date Start date
B

Brad Pears

I have a class in which I use a "Get" method to fill a dataset. I want this
dataset to be a part of the class as I have other methods I want to act on
that dataset - once the class has been instantiated. I have added the
dataset as a class property.

Is this ok to do or not?

Thanks, Brad
 
I have a class in which I use a "Get" method to fill a dataset. I want this
dataset to be a part of the class as I have other methods I want to act on
that dataset - once the class has been instantiated. I have added the
dataset as a class property.

Is this ok to do or not?

Thanks, Brad

It is my impression that any .NET class object can be a property in a
user defined class.

The only problem I can see you having would be if you tried to
serialize the class to an XML file.
 
Perfect, thanks...

Brad
I have a class in which I use a "Get" method to fill a dataset. I want
this
dataset to be a part of the class as I have other methods I want to act on
that dataset - once the class has been instantiated. I have added the
dataset as a class property.

Is this ok to do or not?

Thanks, Brad

It is my impression that any .NET class object can be a property in a
user defined class.

The only problem I can see you having would be if you tried to
serialize the class to an XML file.
 
Back
Top