In my code , extern alias OnlineQBO is my alias of DevDefined.OAuth.dll, i have second dll is XeroApi.dll
whenever my following line of code is executes , conReq object creating by the DevDefined.OAuth.dll , but object call the Get() method of XeroApi.dll , so error ocuring as An explicit conversion exists(are you missing a cast?)
OnlineQBO::DevDefined.OAuth.Consumer.IConsumerRequest conReq = oSession.Request();
conReq = conReq.Get();
Can you suggest any anwser please?
Loading
VulpesPosted May 2, 2014, 11:48 AM
DevDefined.OAuth.Consumer.IConsumerRequest
in DevDefined.OAuth.dll.
Consequently, in this line:
conReq = conReq.Get();
you must be calling the Get() method of the same interface and assigning the result back to conReq. There's no way that you could be calling a Get() method in your other dll even if it contains an interface of the same name.
So the question is what is the return type of the Get() method and, if it's not the same as IConsumerRequest, how does it relate to it?