コード例 #1
0
 public static IEnumerable <RecipeDef> ImpliedRecipeDefs()
 {
     foreach (RecipeDef r in RecipeDefGenerator.DefsFromRecipeMakers().Concat(RecipeDefGenerator.DrugAdministerDefs()))
     {
         yield return(r);
     }
 }
コード例 #2
0
            public bool MoveNext()
            {
                uint num = (uint)this.$PC;

                this.$PC = -1;
                bool flag = false;

                switch (num)
                {
                case 0u:
                    enumerator = RecipeDefGenerator.DefsFromRecipeMakers().Concat(RecipeDefGenerator.DrugAdministerDefs()).GetEnumerator();
                    num        = 4294967293u;
                    break;

                case 1u:
                    break;

                default:
                    return(false);
                }
                try
                {
                    switch (num)
                    {
                    }
                    if (enumerator.MoveNext())
                    {
                        r             = enumerator.Current;
                        this.$current = r;
                        if (!this.$disposing)
                        {
                            this.$PC = 1;
                        }
                        flag = true;
                        return(true);
                    }
                }
                finally
                {
                    if (!flag)
                    {
                        if (enumerator != null)
                        {
                            enumerator.Dispose();
                        }
                    }
                }
                this.$PC = -1;
                return(false);
            }
コード例 #3
0
        public static IEnumerable <RecipeDef> ImpliedRecipeDefs()
        {
            using (IEnumerator <RecipeDef> enumerator = RecipeDefGenerator.DefsFromRecipeMakers().Concat(RecipeDefGenerator.DrugAdministerDefs()).GetEnumerator())
            {
                if (enumerator.MoveNext())
                {
                    RecipeDef r = enumerator.Current;
                    yield return(r);

                    /*Error: Unable to find new state assignment for yield return*/;
                }
            }
            yield break;
IL_00bd:
            /*Error near IL_00be: Unexpected return in MoveNext()*/;
        }