Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
XmlOutput.cs
1using System;
2using System.Reflection;
3using System.Xml;
6
7namespace Waher.Script.Xml
8{
13 {
19 public Grade Supports(Type Object)
20 {
21 return typeof(XmlNode).GetTypeInfo().IsAssignableFrom(Object.GetTypeInfo()) ? Grade.Ok : Grade.NotAtAll;
22 }
23
29 public string GetString(object Value)
30 {
31 XmlNode Node = (XmlNode)Value;
32 return Node.OuterXml;
33 }
34 }
35}
Formats an XmlDocument as an expression.
Definition: XmlOutput.cs:13
string GetString(object Value)
Gets a string representing a value.
Definition: XmlOutput.cs:29
Grade Supports(Type Object)
If the interface understands objects such as Object .
Definition: XmlOutput.cs:19
Interface for custom string output classes. Converts objects of a given type to an expression string.
Grade
Grade enumeration
Definition: Grade.cs:7