In Actionscript 2.0 there is the concept of dynamically generating and
naming objects at runtime. Dynamically named objects can be referenced and
manipulated programmatically using array-access notation.
I'm curious if a similar concept exists in Csharp.
I'm building content management apparatus for ASP.NET pages. I was thinking
it would be nice if I could take database content and generate objects out
of the results of the query. The objects could be named based on DB data:
say, the primary key.
If ADO.NET already returns data rows elements as individual objects, I'm
going to feel kind of dumb. My background is in Classic ASP/ADO. The point
of rendering the data as objects is so that I can have a clean mechanism to
allow the user to override properties for individual records: say, they want
to specify a custom title. As programmer, I could also override certain data
properties to match changing conditions: say, a changed layout.
My solution may be overbuilt given my needs. Can someone offer perspectives?
-KF