예제 #1
0
        public static Boolean Compile(String name, Activity root)
        {
            Type    cachedType = RuntimeActivity.GetCachedType(name);
            Boolean bCached    = false;

            if (cachedType != null)
            {
                RuntimeActivity.CreateCompiledActivity(root as DynamicActivity, cachedType);
                bCached = true;
            }
            else
            {
                cachedType = RuntimeActivity.CompileExpressions(root as DynamicActivity);
                RuntimeActivity.CacheType(name, cachedType);
            }
            return(bCached);
        }
예제 #2
0
        public static Boolean IsTypeCached(String name)
        {
            Type cachedType = RuntimeActivity.GetCachedType(name);

            return(cachedType != null);
        }