Re: Optional date parameter initialization

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




>I have to supply a default value for the date - is there anything I can use
>that obviously indicates that the parameter has not been supplied by the
>caller?

No, you either have to pick one date value to magically represent the
missing state, or use method overloading.


Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.



Relevant Pages

  • Re: Set FileSize
    ... >>I resize the file? ... > Please reply only to the newsgroup. ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Sys tray
    ... > Can't you just set the FormBorderStyle property to SizableToolWindow? ... > Please reply only to the newsgroup. ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: set default encoding
    ... >>Is there a way to set what Default.Encoding returns in an appliaiton? ... > Please reply only to the newsgroup. ... Prev by Date: ...
    (microsoft.public.dotnet.framework)
  • Re: .NET Framework Equivalent to ASCW & ChrW
    ... compile-time evaluated expressions that result in code that's more ... Mattias ... Please reply only to the newsgroup. ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Commenting a class and its methods
    ... you have to put the attribute on the get/set accessor ... Mattias ... Please reply only to the newsgroup. ... Prev by Date: ...
    (microsoft.public.dotnet.framework.interop)