Source

RockPaperScissors / RockPaperScissors / InputConverter.cs

Full commit
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RockPaperScissors
{
  public class InputConverter
  {
    public static Move Convert( char input )
    {
      char scrubbedInput = Char.ToUpper( input );
      switch ( scrubbedInput )
      {
        case 'R': return Move.Rock;
        case 'P': return Move.Paper;
        case 'S': return Move.Scissors;
        default: throw new ArgumentOutOfRangeException( scrubbedInput + " not recognized" );
      }
    }
  }
}