System.Linq.Tests.OfTypeTests.OfType C# (CSharp) Method

OfType() private method

private OfType ( ) : void
return void
        public void OfType()
        {
            var count = (new object[] { 0, (long)1, 2 }).AsQueryable().OfType<int>().Count();
            Assert.Equal(2, count);
        }
    }