Ejemplo n.º 1
0
 public CompareWithReportStep(OptimizerContext context)
     : base(context)
 {
     Configuration = new OptimizerConfiguration();
     context.Options.OptimizerReport.SizeComparision = Result = new SizeComparision();
 }
        private string Write96_SizeComparision(SizeComparision v)
        {
            switch (v)
            {
                case SizeComparision.Ignore:
                    return "Ignore";

                case SizeComparision.Equals:
                    return "Equals";

                case SizeComparision.Smaller:
                    return "Smaller";

                case SizeComparision.Larger:
                    return "Larger";

                case SizeComparision.Between:
                    return "Between";

                case SizeComparision.NotBetween:
                    return "NotBetween";

                case SizeComparision.PercentOf25:
                    return "PercentOf25";

                case SizeComparision.PercentOf50:
                    return "PercentOf50";
            }
            long num = (long) v;
            throw base.CreateInvalidEnumValueException(num.ToString(CultureInfo.InvariantCulture), "Nomad.Commons.SizeComparision");
        }