Thanks for responding Brandon.

One advantage I see in having a separate class is that if I serialize
my properties class into XML, I can then send that XML object to the
database procedure. Using OpenXML, it would be easier to store the
information in the database.

I am seeking more ideas on what is the best way to do it? Is there any
downside If I serialize a class which also contains method
definitions?


On Mar 7, 12:27 am, Brandon Betances <[email protected]> wrote:
> tl;dr: I wouldn't do it.
>
> Well I think your confusing yourself. You* *say you made a class called
> Employees, and then ask if you should make 2 classes; what I *think *your
> getting at is a making a partial class, and containing methods inside its
> own class *file*. In that case, if thats how you want to do it, there is no
> effect on the class when its compiled, that I know of. Really, there's no
> sense in making a completely separate class to perform work on the
> properties of another class. Then you'd have a problem with instances of the
> class, when you could just do the work in the one single *current *instance
> of the class.

Reply via email to