/// <summary> /// CTOR. /// Create an instance which loads the Formatters and Source extensions required by MailMergeLib. /// Error actions are SmartFormatters defaults. /// </summary> /// <param name="config"></param> internal MailSmartFormatter(SmartFormatterConfig config) : this() { if (config == null) { return; } SetConfig(config); }
internal void SetConfig(SmartFormatterConfig sfConfig) { if (sfConfig == null) { return; } Settings.FormatErrorAction = sfConfig.FormatErrorAction; Settings.ParseErrorAction = sfConfig.ParseErrorAction; Settings.CaseSensitivity = sfConfig.CaseSensitivity; Settings.ConvertCharacterStringLiterals = sfConfig.ConvertCharacterStringLiterals; }