using System; using System.Collections.Generic; using System.Reflection; using System.Xml; using JWH; namespace JWH.TIB { public class MessageValue { public string Name { get; set; } = string.Empty; public string Value { get; set; } = string.Empty; public string Format { get; set; } = string.Empty; public List Values { get; set; } = new List(); public MethodInfo Method { get; set; } = null; public List Parameters { get; set; } = new List(); public MessageValue() { } public MessageValue(XmlNode node) { try { node.PropertiesCopyAttribute(this); this.Value = node.InnerText; } catch (Exception ex) { XLogger.Instance.Fatal(ex); } } public override string ToString() { return $"{this.Name}={this.Value}"; } } }