class with dynamic property
-
Hi, How can I define a class that is enable to add properties dynamically to it?
Best wishes
-
Hi, How can I define a class that is enable to add properties dynamically to it?
Best wishes
There could be someways to do this. Using an indexed property is an easy way to do this. Generics provides a way to do this as well[^]. Reflection could also be used for this too.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
-
Hi, How can I define a class that is enable to add properties dynamically to it?
Best wishes
The easy way to do this is to add a class that inherits from DynamicObject[^].
Forgive your enemies - it messes with their heads
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility