static void _on_parse_error(DatatreeDotNet.dt_status_t status, [InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)] string msg, [InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)] string pos, System.IntPtr row, System.IntPtr col) { Debug.Print("Parsing error.\nError code: {0}, error message: {1}\nRow: {2}, col: {3}\nText: {4}\n", status, msg, row, col, pos); }
private void OnError(DatatreeDotNet.dt_status_t status, [InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)] string msg, [InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)] string pos, IntPtr row, IntPtr col) { string _msg = "Datatree parsing error:" + Environment.NewLine; _msg += " error code: " + status.ToString() + Environment.NewLine; _msg += " error message: " + msg + Environment.NewLine; _msg += " error pos: {row: " + row.ToString() + ", col: " + col.ToString() + "}" + Environment.NewLine; Error(_msg); }