06-Get validated input from console apps in Python, Lua and C# - C# - part 2

Опубликовано: 23 Июль 2026
на канале: Inksaver
15
0

This is the sixth video in a series of 6, using a C# static clas. This one covers getting input from a menu.

A keyboard input class for console projects in Python, Lua and C# Ideal for console based projects with no GUI, this class controls input from users to get the required data without errors.

Want them to enter an Integer value betwwen -5 and 25? Sorted. They cannot just hit the Enter key, type a value that cannot be converted, or even a value outside limits you set.

There are equivalent classes in Python, Lua and C#.

They are invaluable to students, especially when learning any of the above languages at an early stage.

Enabling utf8 characters in Windows 10 see this post:

https://stackoverflow.com/questions/5...

Github repository:

https://github.com/Inksaver/Keyboard_...