Пример #1
0
        public InvocationChain ResolveMatch(string line, IEnumerable <InvocationChain> invocationChains)
        {
            var positions = invocationChains.Select(x => new { Position = GetPosition(x), Value = x });

            var pair = positions.Where(x => x.Position >= 0).OrderBy(x => x.Position).FirstOrDefault();

            if (pair == null)
            {
                throw MatchResolutionException.Build(invocationChains);
            }

            return(pair.Value);
        }
Пример #2
0
 public InvocationChain ResolveMatch(string line, IEnumerable <InvocationChain> invocationChains)
 {
     throw  MatchResolutionException.Build(invocationChains);
 }