问题 I have an Excel VSTO COM addin, which I can successfully load an refer to in Excel VBA. I can exchange basic types (like strings), but can I also use complex classes from my addin in VBA? Let's say I have this class in C#: public class TestClass { public string GetTextFunc() => "check"; public string TextProp => "doublecheck"; public int RollDice() => 4; // chosen by fair dice roll } ...and my addin provides an object of this class to Excel: [ComVisible(true)] public interface IUtilities {