Under which application development scenarios C# dynamics and ExpandoObject can be used or when to consider using c# dynamics and ExpandoObject
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
closed as not a real question by gnat, Kilian Foth, BЈовић, Glenn Nelson, Walter Feb 15 '13 at 12:47
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.
One scenario where I've seen dynamic used effectively was in the implementation of feature toggles.
We had a globally accessible
The feature toggles were configured in the application configuration file, and the dynamic
* naturally there was logging output in this case.
One edge case where
The classical way to implement this is to have an
And this assumes the types in question support the visitor. If not, you need one big
This might be my personal opinion but : Never
You are using C#. Static typed language. And probably one of the reasons why are you using it is because you like the safety of static typing for various reasons. If you wanted to sacrifice it, you would be using real dynamic language like Python or Ruby.