Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="text"></param>
        /// <returns></returns>
        new public static string Transform(string text)
        {
            try
            {
                return(new ExtNetTransformer(ExtNetTransformer.PrepareText(text)).Transform());
            }
            catch (System.Exception e)
            {
                if (e.Message.Contains("Reference token (init_script) was not found"))
                {
                    throw new Exception("Probably ResourceManager is not defined in the View");
                }

                throw;
            }
        }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="text"></param>
 /// <param name="tokensType"></param>
 /// <param name="variables"></param>
 /// <returns></returns>
 new public static string Transform(string text, List <Type> tokensType, Dictionary <string, string> variables)
 {
     return(new ExtNetTransformer(ExtNetTransformer.PrepareText(text)).Transform(tokensType, variables));
 }
Beispiel #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="text"></param>
 /// <param name="variables"></param>
 /// <returns></returns>
 new public static string Transform(string text, Dictionary <string, string> variables)
 {
     return(new ExtNetTransformer(ExtNetTransformer.PrepareText(text)).Transform(variables));
 }
Beispiel #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="text"></param>
 /// <param name="tokensType"></param>
 /// <returns></returns>
 new public static string Transform(string text, List <Type> tokensType)
 {
     return(new ExtNetTransformer(ExtNetTransformer.PrepareText(text)).Transform(tokensType));
 }
Beispiel #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="text"></param>
 /// <param name="config"></param>
 /// <returns></returns>
 new public static string Transform(string text, TextTransformerConfig config)
 {
     return(new ExtNetTransformer(ExtNetTransformer.PrepareText(text), config).Transform());
 }
Beispiel #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="text"></param>
 /// <returns></returns>
 new public static string Transform(string text)
 {
     return(new ExtNetTransformer(ExtNetTransformer.PrepareText(text)).Transform());
 }