0

I am not able to understand the following assignment statement:

ImageButton btnsave = (sender) as ImageButton;

what it actually does?

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
Khursheed
  • 343
  • 4
  • 13
  • 1
    [.NET Events - What are object sender & EventArgs e?](http://stackoverflow.com/questions/1303145/net-events-what-are-object-sender-eventargs-e) – Soner Gönül Oct 28 '15 at 09:20
  • 1
    http://stackoverflow.com/questions/496096/casting-vs-using-the-as-keyword-in-the-clr – vivid Oct 28 '15 at 09:21
  • Take a look at [C# `as` opeartor](https://msdn.microsoft.com/en-us/library/cscsdfbt.aspx) – AgentFire Oct 28 '15 at 09:21

0 Answers0