1
I have the following code:
var pagamento = new PefService.Pagamento();
pagamento.IdPagamentoCliente = "teste";
......
//resquest.Pagamentos é PefService.Pagamento[]
request.Pagamentos = pagamento; //error
I’m making the following mistake
Connot implicitly Convert type 'Payment' to 'Payment[]'
Your question brings a doubt as to what it is
request
and what has inPagamentos
, no use passing only the type, need to show if you have instance and positions inarray
– novic
request. Payments is a list ? Shows the rest of the code.
– Joy Peter