private void MatchArgument( ArgumentParser pMatch, ParserResult pr, ref IArgument expectedArg, ref IItem expectedArgItem) { if (expectedArg.IsDynamicArgument) { pr.AddDynamicArgument(expectedArg, pMatch.Done( )); expectedArgItem = null; } else { pr.SetArgument(expectedArg, pMatch.Done( )); } SetNextExpectedArg(null, pr, ref expectedArg, ref expectedArgItem); }