Re: Type convertsion from string



If you are only referring to regular value properties (a user-defined
DateTime called "DateOfBirth", etc), then you can do this without all the
messing. Putting together a runtime-extensible (property-bag) class isn't
actually all that hard. I have posted examples to this forum several
times. TypeDescriptionProvider is probably the way to go in such a case,
but it can't handle text formulae unless you bolt a parser onto the end.

I realized that for ActiveRecord I need to add propertites to type, not to
object.

How to add property to type at runtime or create new type which contains new
regular value property defined at runtime ?
As I know this is not possible without dynamically compiling.

Andrus.



.



Relevant Pages


Loading