예제 #1
0
        public static T[] PromptIndexSelections <T>(this IConsole console, IEnumerable <T> source, Func <T, object> descriptionSelector, bool allowEmpty = false, bool writeInline = false)
        {
            var indexCollection = new MultipleIndexCollection <T>(source, descriptionSelector, allowEmpty);

            return(indexCollection.GetSelection(console, writeInline));
        }
예제 #2
0
        public static T[] PromptIndexSelections <T>(this IConsole console, IEnumerable <T> source, bool allowEmpty, CollectionWriteStyle style)
        {
            var indexCollection = new MultipleIndexCollection <T>(source, allowEmpty);

            return(indexCollection.GetSelection(console, style));
        }