dataset as a class property...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brad Pears

    dataset as a class property...

    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


  • zacks@construction-imaging.com

    #2
    Re: dataset as a class property...

    On Apr 18, 12:16 pm, "Brad Pears" <br...@truenort hloghomes.comwr ote:
    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.

    Comment

    • Brad Pears

      #3
      Re: dataset as a class property...

      Perfect, thanks...

      Brad
      <zacks@construc tion-imaging.comwrot e in message
      news:32ad2b3a-e749-4586-96cf-c8ed90377a92@b6 4g2000hsa.googl egroups.com...
      On Apr 18, 12:16 pm, "Brad Pears" <br...@truenort hloghomes.comwr ote:
      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.


      Comment

      Working...