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); }
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); }
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); }