示例#1
0
 public static CallScript FromByteArray(byte[] callScriptData)
 {
     var callScriptText = Encoding.UTF8.GetString(callScriptData);
     var cs = new CallScript();
     cs._callScript = XDocument.Parse(callScriptText);
     return cs;
 }
示例#2
0
 public static CallScript FromFile(string filePath)
 {
     var text = System.IO.File.ReadAllText(filePath);
     var cs = new CallScript();
     cs._callScript = XDocument.Parse(text);
     return cs;
 }
示例#3
0
 public static CallScript FromBase64String(string encodedCallScriptData)
 {
     var callScriptText = Encoding.UTF8.GetString(Convert.FromBase64String(encodedCallScriptData));
     var cs = new CallScript();
     cs._callScript = XDocument.Parse(callScriptText);
     return cs;
 }
示例#4
0
 public static CallScript FromText(string callScriptText)
 {
     var cs = new CallScript();
     cs._callScript = XDocument.Parse(callScriptText);
     return cs;
 }