A
Abhishek Srivastava
Hello All,
I am facing a simple problem. I have a method which accepts two
parameters. Both are of type DateTime.
However when calling this method there are times when the caller does
not have a value of DateTime with it. I tried calling the method with
null params but that didn't work because DateTime is a struct.
but I don't want to assign any values to it... because eventally the
call goes to a stored proc and the proc know what values to use when
the input is null.
What can I do to overcome this problem. Right now it appears to me
that I cannot pass a null to it ... but at the same time I don't want
to assign any values to these params in my code.
regards,
Abhishek.
I am facing a simple problem. I have a method which accepts two
parameters. Both are of type DateTime.
However when calling this method there are times when the caller does
not have a value of DateTime with it. I tried calling the method with
null params but that didn't work because DateTime is a struct.
but I don't want to assign any values to it... because eventally the
call goes to a stored proc and the proc know what values to use when
the input is null.
What can I do to overcome this problem. Right now it appears to me
that I cannot pass a null to it ... but at the same time I don't want
to assign any values to these params in my code.
regards,
Abhishek.