Hi!
Can anyone help me with translating a VB-code to C#?
I'm reading the walkthrough: Passing data to a custom action.
In part 4 were you create an installer class there is a example of VB-code.
I've tried to translate the code to c# but I have problem with a small part
of it ...
' Finds the right node and change it to the new value.
Dim Node As System.Xml.XmlNode
Dim FoundIt As Boolean = False
For Each Node In XmlDocument.Item("configuration").Item("appSetting s")
If Node.Name = "add" Then ' skip any comments
If Node.Attributes.GetNamedItem("key").Value = "ServerName" Then
Node.Attributes.GetNamedItem("value").Value = ProvidedName
FoundIt = True
End If
End If
Next Node
please help!
---------------
Best regards
- Hans -
---------------
(Have fun programming with ... C#)