public static switch_xml switch_xml_parse_str_dynamic(string s, switch_bool_t dup) { IntPtr cPtr = freeswitchPINVOKE.switch_xml_parse_str_dynamic(s, (int)dup); switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false); return ret; }