Tema: De VB a c#
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/12/2008, 11:30
Bellido
 
Fecha de Ingreso: mayo-2008
Mensajes: 30
Antigüedad: 16 años
Puntos: 0
De VB a c#

Tengo un pequeño problema con los valores que utiliza el VB y el c# y no acabo de ver bien el pasar de uno a otro, seria correcto de esta manera?

VB:

If XML.ChildNodes(1).ChildNodes(a).Attributes("visibl e").Value <> 0 Then
TV.Nodes.Add(TN)
End If

If Not XML.ChildNodes(1).ChildNodes(a).Attributes("select ed") Is Nothing Then
TreeSelectedNode = TN
End If


c#:

if (XML.ChildNodes[1].ChildNodes[a].Attributes["visible"].Value != "false" )
{
TV.Nodes.Add(TN);
}
if (XML.ChildNodes[1].ChildNodes[a].Attributes["selected"] == null)
{
TreeSelectedNodes = TN;
}


Gracias!