G
giddy
hi,
yet another design question, this one is more simple and maybe a
little silly.
When it comes to classes like
class Person{
string Name;
string Address;
int Age;
....
}
They have a bunch of data holding properties, and properties that
could change over time, I read somewhere that a dictionary would be a
good thing to replace properties like this, so would a dictionary be
better?
A bad thing would be that properties would turn out to be strings! Is
that ok?
More importantly, would this help me bind my properties easily when it
comes to making long annoying forms with a control for each property
that must be validated. Is there a good design to automate
validation,updating the right property in the business object and
saving it.
Thanks so much
Gideon
yet another design question, this one is more simple and maybe a
little silly.
When it comes to classes like
class Person{
string Name;
string Address;
int Age;
....
}
They have a bunch of data holding properties, and properties that
could change over time, I read somewhere that a dictionary would be a
good thing to replace properties like this, so would a dictionary be
better?
A bad thing would be that properties would turn out to be strings! Is
that ok?
More importantly, would this help me bind my properties easily when it
comes to making long annoying forms with a control for each property
that must be validated. Is there a good design to automate
validation,updating the right property in the business object and
saving it.
Thanks so much
Gideon