Ejemplo n.º 1
0
        public XmlNode ToStartXml()
        {
            XmlDocument doc = new XmlDocument();

            doc.LoadXml("<dummy/>");
            XmlNode testNode = XmlUtility.AddElement(doc.ChildNodes[0], "start");

            XmlUtility.AddAttribute(testNode, "name", DisplayName);

            return(testNode);
        }
Ejemplo n.º 2
0
            public virtual XmlNode ToStartXml()
            {
                XmlDocument doc = new XmlDocument();

                doc.LoadXml("<dummy/>");
                XmlNode testNode = XmlUtility.AddElement(doc.ChildNodes[0], "start");

                XmlUtility.AddAttribute(testNode, "name", DisplayName);
                XmlUtility.AddAttribute(testNode, "type", method.ReflectedType.FullName);
                XmlUtility.AddAttribute(testNode, "method", method.Name);

                return(testNode);
            }
Ejemplo n.º 3
0
        public virtual XmlNode ToStartXml()
        {
            XmlDocument doc = new XmlDocument();

            doc.LoadXml("<dummy/>");
            XmlNode testNode = XmlUtility.AddElement(doc.ChildNodes[0], "start");

            string typeName   = method.TypeName;
            string methodName = method.Name;

            XmlUtility.AddAttribute(testNode, "name", typeName + "." + methodName);
            XmlUtility.AddAttribute(testNode, "type", typeName);
            XmlUtility.AddAttribute(testNode, "method", methodName);

            return(testNode);
        }