//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: private void parseArgumentCharacter(char argChar) throws ArgsException private void parseArgumentCharacter(char argChar) { IArgumentMarshaler m = null; if (marshalers.ContainsKey(argChar)) { m = marshalers[argChar]; } if (m == null) { throw new ArgsException(UNEXPECTED_ARGUMENT, argChar, null); } else { argsFound.Add(argChar); try { m.set(currentArgument); } catch (ArgsException e) { e.ErrorArgumentId = argChar; throw e; } } }
private void parseArgumentCharacter(char argChar) { IArgumentMarshaler m = marshalers.GetValueOrDefault(argChar); if (m == null) { throw new ArgsException(ErrorCode.UNEXPECTED_ARGUMENT, argChar, null); } else { argsFound.Add(argChar); try { m.set(currentArgument); } catch (ArgsException e) { e.setErrorArgumentId(argChar); throw e; } } }