Esempio n. 1
0
 public static void ClearCache()
 {
     NamespaceWrapper.ClearCache();
     TypeWrapper.ClearCache();
     GenericWrapper.ClearCache();
     DelegateWrapper.ClearCache();
     InstanceMethodWrapper.ClearCache();
     StaticMethodWrapper.ClearCache();
     ConstructorWrapper.ClearCache();
 }
Esempio n. 2
0
        public static DelegateWrapper Wrap(Delegate dg)
        {
            if (cache.ContainsKey(dg))
            {
                return(cache[dg]);
            }
            var tw = new DelegateWrapper(dg);

            cache[dg] = tw;
            return(tw);
        }
Esempio n. 3
0
        public static JavaScriptValue WrapDelegate(Delegate dg)
        {
            var c = DelegateWrapper.Wrap(dg);

            return(c.GetJavaScriptValue());
        }