private static CommandInformation[] ExtractCommandInformationFrom(ICommandRegistry registry) { var commands = registry .GetAll() .OrderBy(x => x.CommandName) .Select(x => new CommandInformation { Name = x.CommandName, Description = AttributeHelper.GetDescription(x.ImplementationType, x.CommandType) }) .ToArray(); return(commands); }