Robuta

https://learn.microsoft.com/ja-jp/dotnet/api/system.linq.enumerable.oftype?view=netframework-4.8 Enumerable.OfTypeTResult(IEnumerable) Method (System.Linq) | Microsoft Learn Filters the elements of an IEnumerable based on a specified type. enumerablemethodsystemlinqmicrosoft