C# Класс PowerArgs.Cli.KeyHandler

A class that lets you dynamically create key handlers
Наследование: IKeyHandler
Показать файл Открыть проект

Открытые методы

Метод Описание
FromAction ( Action handler ) : IKeyHandler

Creates a key handler from the given action

Handle ( RichCommandLineContext context ) : void

Calls the handler action code

Приватные методы

Метод Описание
KeyHandler ( IEnumerable keys, Action handler ) : System

Описание методов

FromAction() публичный статический Метод

Creates a key handler from the given action
public static FromAction ( Action handler ) : IKeyHandler
handler Action the handler action code
Результат IKeyHandler

Handle() публичный Метод

Calls the handler action code
public Handle ( RichCommandLineContext context ) : void
context RichCommandLineContext context from the parent reader
Результат void