Possible Duplicate:
C# “as” cast vs classic cast
What is the difference between these two expressions?
(ListView)sender
sender as ListView
In General, I usually used the exp sender as ListView
.
But in SO i find that most times users use (ListView)sender
.
So, I want to know which one is more efficient.
Or,
If it is the choice of the coder, which one to use[and both works the same way]??