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);
        }
Пример #2
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;
        }