/// <inheritdoc/> public string EscapeString(string input) { StrUtil.StrHandle handle = new StrUtil.StrHandle(); try { int ret = BalUtil.BalEscapeStringFromEngine(this.engine, input, ref handle); if (ret != NativeMethods.S_OK) { throw new Win32Exception(ret); } return(handle.ToUniString()); } finally { handle.Dispose(); } }
/// <inheritdoc/> public string GetVariableVersion(string name) { StrUtil.StrHandle handle = new StrUtil.StrHandle(); try { int ret = BalUtil.BalGetVersionVariableFromEngine(this.engine, name, ref handle); if (ret != NativeMethods.S_OK) { throw new Win32Exception(ret); } return(handle.ToUniString()); } finally { handle.Dispose(); } }