I am new to VBA, tasked to convert VBA code to C#. I am trying to convert the following code from VBA to 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
This is I have converted so far:
var xml = new XmlDocument();
var node = xml.CreateElement("base64");
//What's the c# equivalent of the rest
xml = null;
node = null;
Can anyone help me to fix this .