Hi,

what if I had a webservice method which takes a DateTime parameter and I
want to be able to NOT specify this parameter (i.e. pass null as a value).
One might suggest to use overloading (and run in to the trouble of having
to give each webservice method a unique name(in the wsdl), but let's not
delve into that one), but frankly that's not what I want.

The same question arises (how do I properly handle null with valuetypes
such as int, datetime, ...) when creating [business] objects.  Am I
obligated to revert to a homegrown datetime class, int class, etc... just
to be able to handle the null situation?  What is common practice?  How can
this problem be tackled in an OO-minded fashion?

Awaiting your responses...

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to