OfType

suggest change
var mixed = new object[] {1,"Foo",2,"Bar",3,"Fizz",4,"Buzz"};
var numbers = mixed.OfType<int>();

Console.WriteLine(string.Join(",", numbers.ToArray()));

//1,2,3,4

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents