C# I have an array of superclass objects, which may contain subclass objects. How to test for subclass object & use it's accessors?
<p>I have an <code>Array</code> of <code>AutoMobiles</code>
This array may contain SubClass Objects <code>Truck</code> or <code>Car</code>.</p>

<p>How do I test a Position in the Array for the type of Object?
eg: </p>

<pre><code>if(AutoMobileArray[1].IsObject(Car)){}
</code></pre>

<p>The <code>Car</code> Class has a unique Accessor</p>

<pre><code>public String BootSpace()
</code></pre>

<p>How can I use the SubClass Objects Accessors?
eg: </p>

<pre><code>if(AutoMobileArray[1].IsObject(Car))
{
    BootSpaceLabel.Text = AutoMobileArray[1].BootSpace();
}
</code></pre>
