VSTA generics questions

  •  10-03-2007, 5:24 PM

    VSTA generics questions

    I changed my collection to base from a generic collection according to Tom's blog.  However, I am having some trouble getting it to work.

    In my add-in, I simply do an assignment

    MyNamespace.CollateralCollection col = this.Collaterals;

    which in turn invokes the following code when executing --

    public global::MyNamespace.CollateralCollection Collaterals {

    get {

    object[] _param = new object[0];

    global::ASAP2.CollateralCollection retVal_param;

    if ((this.@__vstaCacheCollaterals3 == null)) {

    this.@__vstaCacheCollaterals3 = this.remoteType.GetProperty("Collaterals", (((global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance)

    | global::System.Reflection.BindingFlags.GetProperty)

    | global::System.Reflection.BindingFlags.Default), null, typeof(global::ASAP2.CollateralCollection), new global::System.Type[0], null);

    }   // <=== !!!! this call returns null  !!!!

    retVal_param = ((global::ASAP2.CollateralCollection)(((global::System.Reflection.PropertyInfo)(this.@__vstaCacheCollaterals3)).GetValue(this, _param)));

    return retVal_param;

    }

    }

    I did add a proxyResolve handler typeInfrastructureManager_ProxyResolve to my proxy code. Although I've not observed it being called.

    I also have a adapterResolve handler on my host side.

    What is wrong here?  Could you provide any debugging tips?

    Thanks.

     

     

    Filed under:
View Complete Thread