GetIntegerInputValue, c# method