Freigeben über


Quick note on breaking changes when using COM Interop

Keep in mind that when you add methods to an assembly you must retain the same order within the code file (and resulting MSIL code within the compiled assembly) otherwise the interface sequence will change and you will break compatibility. If you always add new code to the end of a code file you'll never see this but if you add COM visible methods between existing interface methods you'll change the order of the interface because regasm creates and registers the interface in the order that the methods appear within the physical assembly.