protected override void FinishTemplate(FormRenderer formRenderer, T result) { formRenderer.WriteFinishMessage(_message); if (result != null) { formRenderer.Write(result.ToString(), Prompt.ColorSchema.Answer); } }
protected override void FinishTemplate(FormRenderer formRenderer, IEnumerable <T> result) { formRenderer.WriteFinishMessage(_message); formRenderer.Write(result.Select(_valueSelector).Join(", "), Prompt.ColorSchema.Answer); }
protected override void FinishTemplate(FormRenderer formRenderer, string result) { formRenderer.WriteFinishMessage(_message); formRenderer.Write(new string('*', _inputBuffer.Length), Prompt.ColorSchema.Answer); }
protected override void FinishTemplate(FormRenderer formRenderer, bool result) { formRenderer.WriteFinishMessage(_message); formRenderer.Write(result ? "Yes" : "No", Prompt.ColorSchema.Answer); }
protected override void FinishTemplate(FormRenderer formRenderer, T result) { formRenderer.WriteFinishMessage(_message); formRenderer.Write(_valueSelector(result), Prompt.ColorSchema.Answer); }