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); }
public static Boolean IsTypeCached(String name) { Type cachedType = RuntimeActivity.GetCachedType(name); return(cachedType != null); }