I am working on converting VB.NET to C # and now I'm stuck in an object TreeView.
Dim Arguments1 As String = path & "\" & fs & " ls " & TreeView1.Nodes(ccc).Name
So far, I can only guess:
string Arguments1 = path + "\\" + fs + " ls " + ?
In VB.NET, TreeViewhas a method Nodes(int)from which I can get the property Name. However, C # has no method Nodes(int). I think it can be TreeView1.Items[ccc], but TreeView1.Items[ccc].Namedoes not compile, because the object Items[int]returns does not contain a property Name. How to get it?
source
share