Greg,
Well, if they are truly constants, then the value would never change and
you should be defining them in code with const.
For something like data input field lengths, I would think that there is
a better way to do this. I would think that the underlying data store would
have information on the field length which you can query, and not have to
replicate the data (a DB will expose this information, if it is XML, then
you should be able to get it from the schema).
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Greg Esres" <ge****@boundvortex.comwrote in message
news:f7**********************************@a70g2000 hsh.googlegroups.com...
Nicholas wrote:
<<Add a settings file instead. In that, you can specify the type of
the setting and it will generate the type-safe properties to access
the settings.>>
Interesting...I wasn't familiar with this feature. Do you feel this
is an appropriate way to define constants, such as data input field
lengths?
Thanks