protected Specification(Message parent) { if (parent == null) throw new ArgumentNullException(); this.Message = parent; this.Protocols = new List<string>(); }
public Parameter(Message parent, XmlNode xml, XmlNamespaceManager nsm) : base(parent) { if (xml == null) throw new ArgumentNullException(); if (nsm == null) throw new ArgumentNullException(); XmlAttribute attr = xml.SelectSingleNode("@name", nsm) as XmlAttribute; if (attr != null) this.Name = attr.Value; attr = xml.SelectSingleNode("@aliasing", nsm) as XmlAttribute; if (attr != null) this.Aliasing = (AliasingEnum)Enum.Parse(typeof(AliasingEnum), attr.Value, true); foreach (XmlAttribute node in xml.SelectNodes("sd:Protocol/@name", nsm)) this.Protocols.Add(node.Value); }
public ReturnValue(Message parent, XmlNode xml, XmlNamespaceManager nsm) : base(parent) { if (xml == null) throw new ArgumentNullException(); if (nsm == null) throw new ArgumentNullException(); XmlAttribute attr = xml.SelectSingleNode("@aliasing", nsm) as XmlAttribute; if (attr != null) this.Aliasing = (AliasingEnum)Enum.Parse(typeof(AliasingEnum), attr.Value, true); XmlElement elem = xml.SelectSingleNode("sd:Description", nsm) as XmlElement; if (elem != null) this.Description = new HtmlString(elem); foreach (XmlAttribute node in xml.SelectNodes("sd:Protocol/@name", nsm)) this.Protocols.Add(node.Value); }
public Parameter(Message parent) : base(parent) { }
public ReturnValue(Message parent) : base(parent) { }