General information
Category:
Coding, syntax and commands
Environment versions
Network:
Windows 2003 Server
>Hi everybody,
>
>Yesterday I added a DateRange class and also added a static method for this class ToString that prints StartDate thru EndDate. However, in some methods I see I am printing thru and in some through. So, somehow I want to be able to accommodate both variations. And therefore I have a question as how this simple thing is usually handled.
>
>Is it another ToString method with some extra parameter? Or another method ToLongString? Or a single method with optional parameter and if parameter = false one output otherwise another?
>
>Just tell me your preference, please.
>
>One more idea - since it used for logging only (as far as I can tell so far) use through everywhere.
>
>Thanks in advance.
Gramatically through is correct and thru is incorrect. Personally I would not give the incorrect word equal footing.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only