G
Guest
Hi guys!
I've a function that returns a System.Data.SqlClient.SqlException or
System.Int32 depending on the function's result. If occurs an error it
returns SQLException; if executes with no problem, it returns the @@IDENTITY
of the row which is an Int32 type.
Now I need to compare the type and give to the users the feedback. I ask
you: how can I compare objects. For example, if the function's result is a
SQLException or an Int32 type?
Is that technique right?
Thanks in advance
I've a function that returns a System.Data.SqlClient.SqlException or
System.Int32 depending on the function's result. If occurs an error it
returns SQLException; if executes with no problem, it returns the @@IDENTITY
of the row which is an Int32 type.
Now I need to compare the type and give to the users the feedback. I ask
you: how can I compare objects. For example, if the function's result is a
SQLException or an Int32 type?
Is that technique right?
Thanks in advance