Is there a way to SWAP all references of object A to object B in RUNTIME

depends on how your code is set up

in general you’ll have an array of references and you do a For Each loop that matches the references by some rule and sets the new reference

question is too vague to say much beyond that