Example #1
0
        internal static async ValueTask <string> LoadViewAssemblyAsync(string viewName)
        {
            var res = await LoadMetaDataAsync(Meta_View_Assembly, viewName);

            if (res == null)
            {
                return(null);
            }

            ModelCodeUtil.DecodeViewRuntimeCode(res, out string runtimeCode);
            return(runtimeCode);
        }
Example #2
0
        internal static async ValueTask <string> LoadViewAssemblyAsync(string viewName)
        {
            var res = await LoadAssemblyAsync(false, viewName);

            if (res == null)
            {
                return(null);
            }

            ModelCodeUtil.DecodeViewRuntimeCode(res.DataPtr, (int)res.Size, out string runtimeCode);
            res.Dispose();
            return(runtimeCode);
        }