Difference in casting in the following 2 methods
Posted
by Shrewd Demon
on Stack Overflow
See other posts from Stack Overflow
or by Shrewd Demon
Published on 2010-05-26T05:46:59Z
Indexed on
2010/05/26
5:51 UTC
Read the original article
Hit count: 259
hi,
can somebody please tell me what is the difference between the following two statements, because both of them give me the same results. Also i want to know which is better.
Label lblSome = e.Item.FindControl("lblMyLable") as Label;
&&
Label lblSome = (Label)e.Item.FindControl("lblMyLable");
thank you so much.
© Stack Overflow or respective owner