Exemplo n.º 1
0
        public MethodCall GetMethodCall(string typeName, string targetName, string signature)
        {
            List <MethodCall> candidates = MethodCalls.Where(m => m.Target.TypeName == typeName && m.Target.Name == targetName).ToList();

            if (candidates.Count == 0)
            {
                return(null);
            }

            if (candidates.Count == 1)
            {
                return(candidates[0]);
            }

            return(candidates.FirstOrDefault(m => signature == null || m.Target.Signature == signature));
        }