protected override IEnumerable <Rule> SpecialTextGenerationRules() { using (IEnumerator <Rule> enumerator = base.SpecialTextGenerationRules().GetEnumerator()) { if (enumerator.MoveNext()) { Rule r2 = enumerator.Current; yield return(r2); /*Error: Unable to find new state assignment for yield return*/; } } using (IEnumerator <Rule> enumerator2 = traderData.GetRules("TRADER").GetEnumerator()) { if (enumerator2.MoveNext()) { Rule r = enumerator2.Current; yield return(r); /*Error: Unable to find new state assignment for yield return*/; } } yield break; IL_0154: /*Error near IL_0155: Unexpected return in MoveNext()*/; }
protected override IEnumerable <Rule> SpecialTextGenerationRules() { foreach (Rule item in base.SpecialTextGenerationRules()) { yield return(item); } foreach (Rule rule in traderData.GetRules("TRADER")) { yield return(rule); } }