Inheritance: ISymbolMethod
示例#1
0
 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;
 }
示例#2
0
        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;
			}