/// <summary> /// Clones the Css settings object by copying all the properties. /// </summary> /// <returns>The copy of the current object.</returns> public CssSettings Clone() { // create the new settings object and copy all the properties from // the current settings var newSettings = new CssSettings() { AllowEmbeddedAspNetBlocks = this.AllowEmbeddedAspNetBlocks, ColorNames = this.ColorNames, CommentMode = this.CommentMode, IgnoreAllErrors = this.IgnoreAllErrors, IgnoreErrorList = this.IgnoreErrorList, IndentSize = this.IndentSize, KillSwitch = this.KillSwitch, LineBreakThreshold = this.LineBreakThreshold, MinifyExpressions = this.MinifyExpressions, OutputMode = this.OutputMode, PreprocessorDefineList = this.PreprocessorDefineList, TermSemicolons = this.TermSemicolons, CssType = this.CssType, BlocksStartOnSameLine = this.BlocksStartOnSameLine, }; // add the resource strings (if any) newSettings.AddResourceStrings(this.ResourceStrings); return(newSettings); }
/// <summary> /// Clones the Css settings object by copying all the properties. /// </summary> /// <returns>The copy of the current object.</returns> public CssSettings Clone() { // create the new settings object and copy all the properties from // the current settings var newSettings = new CssSettings() { AllowEmbeddedAspNetBlocks = this.AllowEmbeddedAspNetBlocks, ColorNames = this.ColorNames, CommentMode = this.CommentMode, IgnoreAllErrors = this.IgnoreAllErrors, IgnoreErrorList = this.IgnoreErrorList, IndentSize = this.IndentSize, KillSwitch = this.KillSwitch, LineBreakThreshold = this.LineBreakThreshold, MinifyExpressions = this.MinifyExpressions, OutputMode = this.OutputMode, PreprocessorDefineList = this.PreprocessorDefineList, TermSemicolons = this.TermSemicolons, CssType = this.CssType, BlocksStartOnSameLine = this.BlocksStartOnSameLine, }; // add the resource strings (if any) newSettings.AddResourceStrings(this.ResourceStrings); return newSettings; }