week2/RpsGame_Refactored/RpsGameRepositoryLayer.cs
/// <summary>
/// Converts string input to int. If unsuccessful, returns -1
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
Converts string input to int. If unsuccessful, returns -1
Converts string input to int . If unsuccessful returns - 1
public int StringToInt(string input){
            int output;
            bool logInOrQuitBool = int.TryParse(input, out output);
            if(logInOrQuitBool==false)
            return -1;
            return output;
        }
public int StringToInt ( string input ) { int output ; bool logInOrQuitBool = int . TryParse ( input , out output ) ; if ( logInOrQuitBool == false ) return - 1 ; return output ; }
Converts string input to int.
Converts string input to int .
None
input
string
None