// Note: Causing performance problems. Need to examine reason (possible expensive key generation?) public TranslatedInput GetTranslatedInput(RawInput inRawInput) { if (_inputMappings.ContainsKey(inRawInput)) { return(_inputMappings[inRawInput]); } throw new UnassignedInputMappingException(inRawInput); }
public UnassignedInputMappingException(RawInput unassignedInput) : base("Could not find an input mapped to" + unassignedInput.InputName) { }