コード例 #1
0
        internal void Initialize(ILogger log)
        {
            var en = new CoroutineResultEnumerator(

                string.Format("Enumerator for '{0}'.", Coroutine.InstanceName),

                Coroutine.Execute().GetEnumerator())
            {
                Log = log
            };

            Enumerators   = en;
            IsInitialized = true;
        }
コード例 #2
0
        public static ICoroutineResult Enumerable(IEnumerable <ICoroutineResult> enumerable, string name)
        {
            var result = new CoroutineResultEnumerator(string.Format("Enumerator for '{0}'.", name), enumerable.GetEnumerator());

            return(result);
        }