public static bool HasConstructorActions(XmlNode typeNode, ConstructorInfo cif) { ParameterInfo[] ps = cif.GetParameters(); XmlNodeList list = typeNode.SelectNodes(XmlSerialization.FormatString("{0}[@{1}='True']", XmlSerialization.XML_METHOD, XmlSerialization.XMLATT_CONSTRUCTOR)); foreach (XmlNode node in list) { MethodType mt = new MethodType(); mt.OnReadFromXmlNode(null, node); if (mt.ParameterCount == ps.Length) { bool bFound = true; for (int i = 0; i < ps.Length; i++) { if (!mt.Parameters[i].DataType.Type.Equals(ps[i].ParameterType)) { bFound = false; break; } } if (bFound) { return(true); } } } return(false); }