コード例 #1
0
        /// <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);
        }
コード例 #2
0
        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;
        }