Table of Contents

Operator implicit operator

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

implicit operator Key(KeyCode)

Cast KeyCode to a Key.

public static implicit operator Key(KeyCode keyCode)

Parameters

keyCode KeyCode

Returns

Key

implicit operator Key(char)

Cast char to a Key.

public static implicit operator Key(char ch)

Parameters

ch char

Returns

Key

Remarks

See Key(char) for more information.

implicit operator Key(string)

Cast string to a Key.

public static implicit operator Key(string str)

Parameters

str string

Returns

Key

Remarks

See Key(string) for more information.

implicit operator string(Key)

Cast a Key to a string.

public static implicit operator string(Key key)

Parameters

key Key

Returns

string

Remarks

See Key(string) for more information.