L
localhost
I have severaloverloaded methods that take a multiple combinations of
parameters, some which can't be null. I don't want to use
try...finally logic all over the place to catch the nulls. I want to
create some "catch all" functionality that I can add to every method
that will sweep through all parameters and tell me if any are null.
I think that is a good use for Reflection, but I am not sure how to
proceed. Any examples?
Thanks.
parameters, some which can't be null. I don't want to use
try...finally logic all over the place to catch the nulls. I want to
create some "catch all" functionality that I can add to every method
that will sweep through all parameters and tell me if any are null.
I think that is a good use for Reflection, but I am not sure how to
proceed. Any examples?
Thanks.