示例#1
0
        public override IEnumerable <string> Format(FormatterArgs args)
        {
            List <string> result = new List <string>();

            SingleParameterNameArgs sArgs = args as SingleParameterNameArgs;

            if (sArgs != null && args.Count > 0)
            {
                for (int i = 0; i < args.Count; i++)
                {
                    yield return(string.Format(_formatter, sArgs.PrefixValue, sArgs.StartValue + (sArgs.IncrementValue * i), sArgs.PostfixValue));
                }
            }
        }
示例#2
0
 public abstract IEnumerable <string> Format(FormatterArgs args);