Inheritance: ISymbolMethod
Exemplo n.º 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;
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
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;
			}