public int Item(int index, out IDiaLineNumber lineNumber) { lineNumber = null; IntPtr pLineNumber; int hr = S.StdCall<int>(GetVTableMember(5), Punk, index, out pLineNumber); GC.KeepAlive(this); if (hr != S_OK) return hr; lineNumber = new IDiaLineNumber(pLineNumber); return hr; }
public int Item(int index, out IDiaLineNumber lineNumber) { lineNumber = null; IntPtr pLineNumber; int hr = S.StdCall <int>(GetVTableMember(5), Punk, index, out pLineNumber); GC.KeepAlive(this); if (hr != S_OK) { return(hr); } lineNumber = new IDiaLineNumber(pLineNumber); return(hr); }