/// <summary> /// Maps a common settings /// </summary> /// <param name="commonParserSettings">Common parser settings</param> /// <param name="commonMinifierSettings">Common minifier settings</param> protected static void MapCommonSettings(CommonSettings commonParserSettings, MsAjaxCommonMinificationSettingsBase commonMinifierSettings) { commonParserSettings.BlocksStartOnSameLine = Utils.GetEnumFromOtherEnum<WmmBlockStart, MsBlockStart>( commonMinifierSettings.BlocksStartOnSameLine); commonParserSettings.IgnoreAllErrors = commonMinifierSettings.IgnoreAllErrors; commonParserSettings.IgnoreErrorList = commonMinifierSettings.IgnoreErrorList; commonParserSettings.IndentSize = commonMinifierSettings.IndentSize; commonParserSettings.LineBreakThreshold = commonMinifierSettings.LineBreakThreshold; commonParserSettings.OutputMode = Utils.GetEnumFromOtherEnum<WmmOutputMode, MsOutputMode>( commonMinifierSettings.OutputMode); commonParserSettings.PreprocessorDefineList = commonMinifierSettings.PreprocessorDefineList; commonParserSettings.TermSemicolons = commonMinifierSettings.TermSemicolons; }
/// <summary> /// Maps a common minifier settings /// </summary> /// <param name="originalSettings">Original common minifier settings</param> /// <param name="settings">Common minifier settings</param> protected static void MapCommonSettings(CommonSettings originalSettings, MsAjaxCommonMinificationSettingsBase settings) { originalSettings.BlocksStartOnSameLine = Utils.GetEnumFromOtherEnum <WmmBlockStart, MsBlockStart>( settings.BlocksStartOnSameLine); originalSettings.IgnoreAllErrors = settings.IgnoreAllErrors; originalSettings.IgnoreErrorList = settings.IgnoreErrorList; originalSettings.IndentSize = settings.IndentSize; originalSettings.LineBreakThreshold = settings.LineBreakThreshold; originalSettings.OutputMode = Utils.GetEnumFromOtherEnum <WmmOutputMode, MsOutputMode>( settings.OutputMode); originalSettings.PreprocessorDefineList = settings.PreprocessorDefineList; originalSettings.TermSemicolons = settings.TermSemicolons; }