I'm back! No, no... please don't get up.
So I've got VSTA completely embedded in our application and it actually seems to be working consistently. Of coruse there are issues to deal with still but given the complexity of our implementation I'm pleased.
Now, I seem to thing that I knew the answer to this a while back but I can't remember any more. what are the rules for what types of parameters you can and can't use in an AddIn Event?
More specifically, I have an event that passes a custom object (FieldEventArgs) as the second parameter. This object inherits from System.EventArgs like it's supposed to and almost all the properties are accessible just fine from the AddIn code. Of course they are all strings except one. One of the properties of this object is an XmlElement. When I try to access it, I get an error "Return argument has an invalid type." Is this breaking some rule about what can and can't be used across the pipeline?
Is it just as simple as teh fact that XmlElement isn't serializable?
Thx.