예제 #1
0
 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;
 }
예제 #2
0
        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);
        }