104.
What will execute faster?
View Description
void Method(object obj)
{ IList list = obj as IList;
if (list != null) {
list.Clear();
}
}
Using the 'as' does the casting and if it cannot perform a cast the resulting value becomes a NULL