What is “OfType” in linq?

What is “OfType” in linq?

public void TypeofExa()
{
    Var numbers = {null,1.0,"two", 3,"four",5,"six",7.0 };

    var doubles = from n in numbers where n is doublen;

    Console.WriteLine("Numbers stored as doubles:");

    foreach (object d in doubles)
    {

        Console.WriteLine(d);
    }
}

Output:
Numbers stored as doubles:
1
7
How can we find Sequence of Items in two different array (same Type) in the same order using linq query?
How can we find Sequence of Items in two different array (same Type) in the same order using linq query?
Differentiate between Conversion Operator “IEnumerable” and “ToDictionary” of linq.
IEnumerable and To Dictionary both are Conversion Operator which are used to solved to conversion type Problems......
Advantage of LINQ over stored procedures
Advantage of LINQ over stored procedures - Type Safety-linq has no default type ......
Post your comment