Checking Type Inside Collection in C#
===

I am kind of new to C# and not sure about the following:
I have a parameter defined as follows:

 

    public Collection<object> InputObject
            {
                get { return inputObject; }
                set { inputObject= value; }
            }
            private Collection<object> inputObject;

As you can see, the object is a collection of objects since I am expecting different types.

When later I want to check the type, what is the right way?
I tried this: 
 

    if (inputObject is Collection<MyDefinedObject>)
    {
       
    }


but I get an underlined warning that the given expression is never of the expected type. What is the right way to check for a type within a collection?

Thanks