我是VBA的新手,负责将VBA代码转换为C#。我正在尝试将以下代码从VBA转换为C#:
Dim xml As New MSXML2.DOMDocument
Dim node
Set node = xml.createElement("base64")
node.dataType = "bin.base64"
node.nodeTypedValue = ConvertStringToBinary(rawString)
Base64Encode = node.text
Set node = Nothing
Set xml = Nothing
这是我到目前为止的转换:
var xml = new XmlDocument();
var node = xml.CreateElement("base64");
//What's the c# equivalent of the rest
xml = null;
node = null;
谁能帮我解决这个问题。