public int GetOffset(ISymbolDocument document, int line, int column) { int retVal = 0; m_unmanagedMethod.GetOffset(((SymbolDocument)document).InternalDocument, line, column, out retVal); return(retVal); }
public int GetOffset(ISymbolDocument document, int line, int column) { var symDoc = document as SymbolDocument; if (symDoc == null) { throw new ArgumentException("document is not a non-null SymbolDocument instance"); } uint result; method.GetOffset(symDoc.SymUnmanagedDocument, (uint)line, (uint)column, out result); return((int)result); }
public int GetOffset(ISymbolDocument document, int line, int column) { var symDocument = document as SymbolDocument; if (symDocument == null) { throw new InvalidOperationException(); } int value; HRESULT.ThrowOnFailure(_unmanaged.GetOffset(symDocument.Unmanaged, line, column, out value)); return(value); }