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)); }
public static string Calculate(string expr, object model) { return(Tp.Parse(expr, model) ?? string.Empty); }