예제 #1
0
    public T Get(object target)
    {
        T value;

        while (!mCache.TryGet(target, out value))
        {
            mCache = mCache.Promote(target.GetType());
        }
        return(value);
    }
예제 #2
0
 public CallSite(string methodName)
 {
     mCache = new DefaultCache <T>(methodName);
 }