A flexible model for dynamic linking in Java and C#