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

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

            return(c.GetJavaScriptValue());
        }