Comment voulez-vous mettre en œuvre cette propriété en IDL:Comment exprimez-vous une propriété int [] dans le langage de description d'interface?
public int[] Params
{
get
{
return _Params;
}
set
{
_Params = value;
}
}
J'ai essayé le code IDL ci-dessous
[propget, helpstring("The click through parameters")]
HRESULT Params([out, retval] int *rVal);
[propput, helpstring("The click through parameters")]
HRESULT Params([in] int *RnewVal);
Mais mon compilateur cherche ce
public int get_Params()
{
throw new NotImplementedException();
}
public void set_Params(ref int rVal)
{
throw new NotImplementedException();
}
Je suis 99,999% Assurez-vous que c'est un problème avec les types.
Vous avez mal orthographié Params dans le code d'origine. –
touche j'ai fait. Fixé. Cette erreur n'était pas dans le code, cependant – Dlongnecker