Hi, On Sun, Dec 5, 2010 at 12:41 AM, joer <[email protected]> wrote: > So Assembly A has some classes Assembly B inherits. A verifies fine. > So what do I need to import into B from A ? If I step in my IL > Instructions, all types seem to resolve just fine. If the IL > references a field of Class in Assembly B where the field is declared > in the base class in class A, do I need to import such ? I thought I > can and must only import types and methods ?
It's simple, if you use a metadata element from another module, you have to import it. Be it a type, a method, or a field. So if, in assembly A, you use a field Type.Field from assembly B, you must create a reference (import) to [B]Type.Field into A. Jb -- -- mono-cecil
