c# - How can I know which method called event handler -
i have 2 methods:
private void rvlisten_opt() private void rvlisten_fut()
on event, both call:
void onrvmessagereceived(object sender, sigrvmessageeventargs args)
when onrvmessagereceived called, how can check of 2 methods called it? know can done using object sender, i'm not sure how it.
if can edit sigrvmessageeventargs class add field set differently in 2 calls.
Comments
Post a Comment