internal static bool SListAppend(SafeCurlSListHandle slist, string headerValue) { bool gotRef = false; try { slist.DangerousAddRef(ref gotRef); IntPtr newHandle = SListAppend(slist.DangerousGetHandle(), headerValue); if (newHandle != IntPtr.Zero) { slist.SetHandle(newHandle); return true; } return false; } finally { if (gotRef) slist.DangerousRelease(); } }
internal static bool SListAppend(SafeCurlSListHandle slist, string headerValue) { bool gotRef = false; try { slist.DangerousAddRef(ref gotRef); IntPtr newHandle = SListAppend(slist.DangerousGetHandle(), headerValue); if (newHandle != IntPtr.Zero) { slist.SetHandle(newHandle); return(true); } return(false); } finally { if (gotRef) { slist.DangerousRelease(); } } }