Example #1
0
 public static void ClearCache()
 {
     NamespaceWrapper.ClearCache();
     TypeWrapper.ClearCache();
     GenericWrapper.ClearCache();
     DelegateWrapper.ClearCache();
     InstanceMethodWrapper.ClearCache();
     StaticMethodWrapper.ClearCache();
     ConstructorWrapper.ClearCache();
 }
Example #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);
        }
Example #3
0
        public static JavaScriptValue WrapDelegate(Delegate dg)
        {
            var c = DelegateWrapper.Wrap(dg);

            return(c.GetJavaScriptValue());
        }