0

I would like to know if is it possible to dynamically add properties into a class without recompiling AND keep have the possibility to use IntelliSense on it ?

The only way I found is to use dynamic classes but IntelliSense doesn't work on it.

Thanks.

Victor Castro
  • 1,232
  • 21
  • 40

1 Answers1

0

dynamic is the only way to add properties to objects dynamically.

Properties of dynamic objects are created at runtime and cannot be resolved before compilation.

felschr
  • 62
  • 2
  • 8