예제 #1
0
        public static void Save()
        {
            string configFile     = string.Format("{0}\\{1}", AppPhysicsPath, CONFIG_FILE);
            string templateBuffer = ResHelper.ReadTextFromRes(typeof(InstallContext).Assembly, "Prolliance.Membership.Install.Lib.Amuse.tmpl");
            string configBuffer   = Tp.Parse(templateBuffer, settingContext);

            File.WriteAllText(configFile, configBuffer);
            WriteInstallLog(serializer.Serialize(settingContext));
        }
예제 #2
0
 public static string Calculate(string expr, object model)
 {
     return(Tp.Parse(expr, model) ?? string.Empty);
 }