Esempio n. 1
0
File: Finder.cs Progetto: merxbj/src
 private IEnumerable<CallByName> FindInProgram(Program program)
 {
     log.InfoFormat("\t\t" + program.FileName);
     XmlNodeList invokeNodes = program.Source.SelectNodes("//Invoke[OperationType/@val='B' and (not(boolean(Disabled)) or not(Disabled/@val='1'))]");
     if (invokeNodes != null)
     {
         foreach (XmlNode invokeNode in invokeNodes)
         {
             if (invokeNode is XmlElement)
             {
                 CallByNameBuilder builder = new CallByNameBuilder(program, invokeNode as XmlElement);
                 yield return builder.Build();
             }
         }
     }
 }
Esempio n. 2
0
        private IEnumerable <CallByName> FindInProgram(Program program)
        {
            log.InfoFormat("\t\t" + program.FileName);
            XmlNodeList invokeNodes = program.Source.SelectNodes("//Invoke[OperationType/@val='B' and (not(boolean(Disabled)) or not(Disabled/@val='1'))]");

            if (invokeNodes != null)
            {
                foreach (XmlNode invokeNode in invokeNodes)
                {
                    if (invokeNode is XmlElement)
                    {
                        CallByNameBuilder builder = new CallByNameBuilder(program, invokeNode as XmlElement);
                        yield return(builder.Build());
                    }
                }
            }
        }