Invoke() public method

Retuns an object with async functions for node.js
public Invoke ( ) : object
return object
Example #1
0
        /// <summary>
        /// Init slide Array
        /// </summary>
        /// <returns></returns>
        private object Slides(IDictionary <string, object> filter)
        {
            List <object> slides = new List <object>();

            foreach (PowerPoint.Slide pptSlide in this.presentation.Slides)
            {
                var slide = new Slide(pptSlide);
                if (slide.TestFilter(filter))
                {
                    slides.Add(slide.Invoke());
                }
            }

            return(slides.ToArray());
        }
        /// <summary>
        /// Init slide Array
        /// </summary>
        /// <returns></returns>
        private object Slides(IDictionary<string, object> filter)
        {
            List<object> slides = new List<object>();

            foreach (PowerPoint.Slide pptSlide in this.presentation.Slides)
            {

                var slide = new Slide(pptSlide);
                if (slide.TestFilter(filter))
                {
                    slides.Add(slide.Invoke());
                }

            }

            return slides.ToArray();
        }