DynamicValueUtility.ConvertXmlToDynamicValues should be aware of elements that accept dynamic values (Bug #232)
In order to avoid the ever coming bugs in DynamicValueUtility.ConvertXmlToDynamicValues where it does not count the children properly, I propose the following change:
Create an interface (IWithDynamicValuesItem?) that declares a property of type IDynamicValue
Make TaskBase and SourceControlBase implement that interface
Make DynamicValueUtility.ConvertXmlToDynamicValues aware of that interface so that when an item implements it, the generated dynamic value items are put as children of the item, not as children of the parent.
This will lead to a more readable output when there are lots of tasks inside other tasks.
I shall be able to submit a pull request for this in the upcoming days.