## Expected Behavior - Error is not clear. `AttachOrReplaceChild `should take that in consideration and throw/warn that name is already registered instead ## Actual Behavior - Throws `InvalidCastException ` ## Steps to Reproduce the Problem 1. Add a `DataLoader` with a given name to a VM 2. Use `AttachOrReplaceChild `and give the same name to the disposable - i.e vm being attached/replace 3. Notice that it throws with a `InvalidCastException` ## Specifications - Version: Latest - Platform: All - Subsystem:
Expected Behavior
AttachOrReplaceChildshould take that in consideration and throw/warn that name is already registered insteadActual Behavior
InvalidCastExceptionSteps to Reproduce the Problem
DataLoaderwith a given name to a VMAttachOrReplaceChildand give the same name to the disposable - i.e vm being attached/replaceInvalidCastExceptionSpecifications