How do I copy a Collider at runtime?


I need to copy a Collider from one object and place as a component on another object, at runtime. The problem is that I don’t know in advance what kind of Collider might be on the source object (SpherCollider, MeshCollider etc.), and AddComponent will not work with the abstract base Collider class?