public int GetMethodByVersion(SymbolToken methodToken, int version, out ISymUnmanagedMethod retVal) { var hr = _reader.GetMethodByVersion(methodToken, version, out retVal); if (retVal != null) { retVal = new SymMethod(this, retVal); } return hr; }
public virtual ISymbolMethod GetMethod(SymbolToken method, int version) { ISymbolMethod meth; if (methodCache == null) { methodCache = new Hashtable(); } else if ((meth = (ISymbolMethod)methodCache [method.GetToken()]) != null) { return(meth); } meth = new SymMethod(this, method.GetToken()); methodCache[method.GetToken()] = meth; return(meth); }
public virtual ISymbolMethod GetMethod(SymbolToken method, int version) { ISymbolMethod meth; if(methodCache == null) { methodCache = new Hashtable(); } else if((meth = (ISymbolMethod)methodCache [method.GetToken()]) != null) { return meth; } meth = new SymMethod(this, method.GetToken()); methodCache[method.GetToken()] = meth; return meth; }