public static unsafe InterpMorf[] ParseQuery(string query) { InterpMorf[] res = null; try { Cindalnet.SQLBot.Model.MorfeuszDllWrapper.CInterpMorf *items; int itemsCount; using (MorfeuszDllWrapper.ParseQuery(out items, out itemsCount, query)) { res = new InterpMorf[itemsCount]; for (int i = 0; i < itemsCount; i++) { try { res[i].p = items[i].p; res[i].k = items[i].k; res[i].forma = Marshal.PtrToStringAnsi(items[i].forma); res[i].haslo = Marshal.PtrToStringAnsi(items[i].haslo); res[i].interp = Marshal.PtrToStringAnsi(items[i].interp); } catch (Exception) { } } } } catch (Exception) { } return(res); }
public static unsafe InterpMorf[] ParseQuery(string query) { InterpMorf[] res = null; try { Cindalnet.SQLBot.Model.MorfeuszDllWrapper.CInterpMorf* items; int itemsCount; using (MorfeuszDllWrapper.ParseQuery(out items, out itemsCount, query)) { res = new InterpMorf[itemsCount]; for (int i = 0; i < itemsCount; i++) { try { res[i].p = items[i].p; res[i].k = items[i].k; res[i].forma = Marshal.PtrToStringAnsi(items[i].forma); res[i].haslo = Marshal.PtrToStringAnsi(items[i].haslo); res[i].interp = Marshal.PtrToStringAnsi(items[i].interp); } catch (Exception) { } } } } catch (Exception) { } return res; }