Example #1
0
        public string Print(PrintOption option)
        {
            var str   = FormattingHelper.FormatValue(value) ?? string.Empty;
            var stars = new string('*', str.Length);

            return($"{name}={stars}");
        }
Example #2
0
        public string Print(PrintOption option)
        {
            if (suffix != null)
            {
                return($"{name}={FormattingHelper.FormatValue(value, format)}{suffix}");
            }

            return($"{name}={FormattingHelper.FormatValue(value, format)}");
        }