> >// C#
> >public void LoadProperty( object o ){
> Log.Info( o.ToString() ); //CallPutSchedule
> Log.Info( o.GetType().ToString() ); //System.String
> o.GetType().GetMethods(); //Returns methods for
> System.String }
>
> >Would someone be able to explain this very perplexing behavior to me?
>
> It's not clear to me how LoadProperty is called in C# and How
It's not, it's called in VBA:
> '' VB
> MsgBox convertible.CallPutSchedule.GetType().ToString()
> ''CallPutSchedule
> Call propMaster.LoadProperty( convertible.CallPutSchedule )
> o.ToString is
> supposed to call CallPutSchedule. Also, I am unclear on what
Well, it could be other things as well, but in this example
CallPutSchedule is passed in, so it is expected to be that. The Interop
part is that this .Net form is instantiated and "ShowDialog"ed in VBA
(Excel to be specific)
Hope that clears things up.
Thanks,
Akshay