Beispiel #1
0
        public override IEnumerable <CompletionResult> CompleteArgument(string commandName,
                                                                        string parameterName,
                                                                        string wordToComplete,
                                                                        CommandAst commandAst,
                                                                        IDictionary fakeBoundParameters)
        {
            var values    = new List <CompletionResult>();
            var timeZones = TimeZones.GetTimeZones();

            SelectValues(wordToComplete, timeZones, values);

            return(values);
        }
Beispiel #2
0
 internal override IEnumerable <string> GetValues() => TimeZones.GetTimeZoneIds();
Beispiel #3
0
 internal static IEnumerable <string> GetTimeZoneIds()
 {
     return(TimeZones.GetTimeZones().Keys.ToList());
 }