Encapsulates the binding logic for instantiating a JBST on a page.
示例#1
0
        public static JbstBuildResult FindJbst(string jbstName)
        {
            string className = JbstCodeProvider.GetClassForJbst(jbstName);

            JbstBuildResult jbst = BuildCache.Instance.Create <JbstBuildResult>(className);

            if (jbst == null)
            {
                // use a simple value rather than code generated
                jbst = new JbstBuildResult(jbstName);
            }

            return(jbst);
        }
        public static JbstBuildResult FindJbst(string jbstName)
        {
            string className = JbstCodeProvider.GetClassForJbst(jbstName);

            JbstBuildResult jbst = BuildCache.Instance.Create<JbstBuildResult>(className);
            if (jbst == null)
            {
                // use a simple value rather than code generated
                jbst = new JbstBuildResult(jbstName);
            }

            return jbst;
        }