--- lang: ja-jp breaks: true --- # C# `IAsyncEnumerable<T>` を `IEnumerable<T>` に変換する 2022-09-01 ## csproj ```xml= <ItemGroup> <PackageReference Include="System.Linq.Async" Version="6.0.1" /> </ItemGroup> ``` ## cs ```csharp= IAsyncEnumerable<PostalCodeRow> asyncEnumerable = Get(); return asyncEnumerable.ToEnumerable(); ``` ###### tags: `C#` `IAsyncEnumerable<T>` `IEnumerable<T>` `System.Linq.Async`