BadScript 2
Loading...
Searching...
No Matches
BadXmlApi.cs
Go to the documentation of this file.
1using System.Xml;
2
5
7
11[BadInteropApi("Xml")]
12internal partial class BadXmlApi
13{
19 [BadMethod(description: "Loads an XML Document from a string")]
20 [return: BadReturn("XmlDocument")]
21 private BadObject Load(string xml)
22 {
23 XmlDocument doc = new XmlDocument();
24 doc.LoadXml(xml);
25
26 return new BadReflectedObject(doc);
27 }
28}
BadObject Load(string xml)
Loads an XML Document from a string.
Definition BadXmlApi.cs:21
Implements an Interop API for the BS2 Language.
The Base Class for all BadScript Objects.
Definition BadObject.cs:14
Contains Common Interop APIs for the BadScript2 Runtime.
Contains the Classes for Reflection Objects.
Contains the Runtime Objects.
Definition BadArray.cs:10