Пример #1
0
        private void InvokeSpecialMethod(object oDetailsNode)
        {
            ReplyNode detailsNode = (ReplyNode)oDetailsNode;
            bool      r           = (bool)_mi.Invoke(null, new object[1] {
                oDetailsNode
            });

            detailsNode.AddElement(_name, (r ? "true" : "false"));
        }
Пример #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="replyformat">The format to supply the Reply in</param>
        public Reply(string replyformat)
        {
            _dom = new XmlDocument();
            _dom.AppendChild(_dom.CreateNode(XmlNodeType.XmlDeclaration, "", ""));
            _dom.AppendChild(_dom.CreateElement("", Settings.GetString("NodeNameReply"), ""));

            _result   = new ReplyNode(_dom, Settings.GetString("NodeNameResult"));
            _response = new ReplyNode(_dom, Settings.GetString("NodeNameResponse"));
            _error    = new ErrorNode(_dom, Settings.GetString("NodeNameError"));

            _replyFormat = (replyformat == null ? "xml" : replyformat.ToLower());
        }