private void ParseArgumentCharacters(string argChar) { try { IArgumentMarshaler m = argsSchema.Marshalers[argChar]; if (m == null) { throw new ArgsException(ArgsException.ErrorCodes.UNEXPECTED_ARGUMENT, argChar, null); } else { argsFound.Add(argChar); try { m.Set(currentArgument); } catch (ArgsException ex) { ex.ErrorArgumentId = argChar; throw ex; } } } catch (KeyNotFoundException ex) { throw new ArgsException(ArgsException.ErrorCodes.UNEXPECTED_ARGUMENT, argChar, null); } }
// Token: 0x06015599 RID: 87449 RVA: 0x0056ADC0 File Offset: 0x00568FC0 private void _ParseArguments(string[] argsArray) { for (int i = 0; i < argsArray.Length; i++) { IArgumentMarshaler argumentMarshaler = this._marshalers[i.ToString()]; if (argumentMarshaler == null) { throw new ArgsException(ArgsException.ErrorCode.UNEXPECTED_ARGUMENT, i.ToString(), null); } try { argumentMarshaler.Set(argsArray[i]); } catch (ArgsException ex) { ex.ErrorArgumentId = i.ToString(); throw ex; } } }
private void ParseArgumentCharacter(char argsChar) { IArgumentMarshaler m = marshalers[argsChar]; if (m == null) { throw new ArgumentException(); } else { argsFound.Add(argsChar); try { m.Set(currentArgument.GetEnumerator()); } catch (ArgsException e) { e.SetErrorArgumentId(argsChar); throw e; } } }