C++/CLI com-Interop: Exposing a reference type property to VBA
- by Adam
After long hours of investigation on exposing C# property that accepts a reference type to VBA, I concluded that it was not possible. In brief, a C# property that is of type double[] or even an object cannot be consumed in VBA like this:
' Compile Error: Function or interface marked as restricted,
' or the function uses an Automation type not…