S
Spondishy
This is a bit of a mix between asp.net and c#, but I thought I'd try
here first.
I have a number of objects (imagine products) in an IList that I want
to render in the UI. They all inherit from the same base class. The
individual classes have extra attributes, for example one might have
weight, another color.
I want a generic way to render these in the UI, without the need of a
huge switch statement. Should each object know how to render itself
for instance?
Any implemented examples around the net would be good. Thanks.
here first.
I have a number of objects (imagine products) in an IList that I want
to render in the UI. They all inherit from the same base class. The
individual classes have extra attributes, for example one might have
weight, another color.
I want a generic way to render these in the UI, without the need of a
huge switch statement. Should each object know how to render itself
for instance?
Any implemented examples around the net would be good. Thanks.