这是我在 VB.net 中的代码。它显示 AB、CD、EF。我如何制作一个子程序,以便我可以调用:Sub-name(field65, field547, field66)
?
Sub main()
Dim fileName As String = "C:\AAA\test5.xml"
Dim root As XElement = XDocument.Load(fileName).Root
Dim a = root.<field65>.Value
Dim b = root.<field547>.Value
Dim c = root.<field66>.Value
Console.WriteLine(a)
Console.WriteLine(b)
Console.WriteLine(c)
Console.WriteLine("Please Press any key to continue!")
Console.ReadKey()
End Sub