Skip to content

[All] AttachOrReplaceChild throws InvalidCastException when two disposables got the same name  #35

@vincentcastagna

Description

@vincentcastagna

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions