示例#1
0
        public override IEnumerable <string> ConfigErrors()
        {
            using (IEnumerator <string> enumerator = base.ConfigErrors().GetEnumerator())
            {
                if (enumerator.MoveNext())
                {
                    string e = enumerator.Current;
                    yield return(e);

                    /*Error: Unable to find new state assignment for yield return*/;
                }
            }
            if (Prefs.DevMode)
            {
                using (List <BiomeAnimalRecord> .Enumerator enumerator2 = wildAnimals.GetEnumerator())
                {
                    while (enumerator2.MoveNext())
                    {
                        _003CConfigErrors_003Ec__Iterator1 _003CConfigErrors_003Ec__Iterator = (_003CConfigErrors_003Ec__Iterator1) /*Error near IL_00f9: stateMachine*/;
                        BiomeAnimalRecord wa = enumerator2.Current;
                        if (wildAnimals.Count((BiomeAnimalRecord a) => a.animal == wa.animal) > 1)
                        {
                            yield return("Duplicate animal record: " + wa.animal.defName);

                            /*Error: Unable to find new state assignment for yield return*/;
                        }
                    }
                }
            }
            yield break;
IL_01ab:
            /*Error near IL_01ac: Unexpected return in MoveNext()*/;
        }
 public override IEnumerable <string> ConfigErrors()
 {
     foreach (string e in base.ConfigErrors())
     {
         yield return(e);
     }
     if (Prefs.DevMode)
     {
         using (List <BiomeAnimalRecord> .Enumerator enumerator2 = this.wildAnimals.GetEnumerator())
         {
             while (enumerator2.MoveNext())
             {
                 BiomeAnimalRecord wa = enumerator2.Current;
                 if (this.wildAnimals.Count((BiomeAnimalRecord a) => a.animal == wa.animal) > 1)
                 {
                     yield return("Duplicate animal record: " + wa.animal.defName);
                 }
             }
         }
     }
     yield break;
 }