Olá a todos,
Como consigo pegar o nó filho do <paymentMethod> via dataset?
Seria algo similar a isso:
oStatusPagSeguroBO.IdStatusPagamento = Convert.ToInt32(ds.Tables[0].Rows[0]["["paymentMethod"]"]["type"].ToString()); <---------
if (ds != null)
{
if (ds.Tables[0].Rows.Count > 0)
{
oStatusPagSeguroBO.StatusContrato = 0;
oStatusPagSeguroBO.CodTransacao = ds.Tables[0].Rows[0]["code"].ToString();
oStatusPagSeguroBO.DataAtualizacao = Convert.ToDateTime(ds.Tables[0].Rows[0]["date"].ToString());
oStatusPagSeguroBO.Referencia = ds.Tables[0].Rows[0]["reference"].ToString();
oStatusPagSeguroBO.IdStatusPagamento = Convert.ToInt32(ds.Tables[0].Rows[0]["["paymentMethod"]"]["type"].ToString()); <---------
Desde já, obrigado!