Beispiel #1
0
        public ArgEnumerator(IIrcMsg msg)
        {
            if (msg == null)
            {
                throw new ArgumentNullException(nameof(msg));
            }

            argNumerator =
                ParseArgs.SkipTrigger(msg)
                .GetEnumerator();
        }
Beispiel #2
0
        public bool MoveNext()
        {
            bool gotArg = false;

            while (!(gotArg || Current == string.Empty))
            {
                if (argNumerator.MoveNext())
                {
                    gotArg  = ParseArgs.TryGetArg(argNumerator.Current, out string arg);
                    Current = arg;
                }
                else
                {
                    Current = string.Empty;
                }
            }

            return(gotArg);
        }