P
Pohihihi
This might sound little stupid to many but I was thinking that when we can
use object why we really need event args to pass in any functions e.g.
bool MyFunction(object sender, System.EventArgs e){}
my question is targetted more on the customized event arguments that we
create while programming.
Is it just to make it more readable or maybe to make things in collective
and hierarchy?
Maybe this question it is very much like my previous post on why we need 3
diff kind of exception when they not doing any good. Basically all are
System.Exception.
System.Exception
System.SystemException
System.ApplicationException
And, if ApplicationException is there then what could have hurt adding
ConsoleException or WindowsApplicatoinException per say.
As per the following link (thanks to Jay Harlow)
http://blogs.msdn.com/brada/archive/2004/03/25/96251.aspx
seems like no one likes to use ApplicationException.
If this is the feeling in general than why now just use
bool MyFunction(object sender, MyObject myObj){}
My point is that why even argument namespace anyways !
Thanks,
Po
use object why we really need event args to pass in any functions e.g.
bool MyFunction(object sender, System.EventArgs e){}
my question is targetted more on the customized event arguments that we
create while programming.
Is it just to make it more readable or maybe to make things in collective
and hierarchy?
Maybe this question it is very much like my previous post on why we need 3
diff kind of exception when they not doing any good. Basically all are
System.Exception.
System.Exception
System.SystemException
System.ApplicationException
And, if ApplicationException is there then what could have hurt adding
ConsoleException or WindowsApplicatoinException per say.
As per the following link (thanks to Jay Harlow)
http://blogs.msdn.com/brada/archive/2004/03/25/96251.aspx
seems like no one likes to use ApplicationException.
If this is the feeling in general than why now just use
bool MyFunction(object sender, MyObject myObj){}
My point is that why even argument namespace anyways !
Thanks,
Po