Possible Duplicate:
Type Checking: typeof, GetType, or is?
So I am comparing a Control's type and I thought I could do something like this.
if (control[0].GetType() is TSendForReview)
However, I get the following warning.
The given expression is never of the provided ('MyApp.Controls.TSendForReview') type
So if I switch it to this the warning goes away.
if (control[0].GetType() == typeof(TSendForReview))
What exactly does that warning mean and what is the difference between typeof and is while comparing control types.