RCS1250 is not offered in the following case:
namespace Foo;
internal class Program
{
private static string[] _test = ["foo", "bar"];
private record TestRecord(string Test);
private static async System.Collections.Generic.IAsyncEnumerable<TestRecord> TestAsync()
{
foreach (var test in _test)
{
yield return new [|TestRecord|](test);
}
}
private static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
}
}
RCS1250 is not offered in the following case: