This is stupidly pedantic, but the implementation of WriteLine(string,
object[]) isn't consistent with its documentation.

That is, the string parameter will be correctly processed according to
the semantics of string.Format(string, object[]), but if there were any
prior calls to Write(string) then the currently stored message may
_also_ be formatted according to these semantics, which isn't very
obvious from the API.

The obvious implementation (to me) is to delegate:

public override void WriteLine(string line, params object[] args) {
  WriteLine(string.Format(line, args));
}


If the formatting-in-retrospect behaviour is intended and correct, then
the documentation for this method should be updated instead... although
I can't think of a non-confusing way of describing this behaviour
succinctly.


Yours in pedantics,

-- Troy


Disclaimer Message:

This message contains confidential information and is intended only for the 
individual(s) named.  If you are not the named addressee you should not disseminate, 
distribute or copy this e-mail. Please immediately delete it and all copies of it from 
your system, destroy any hard copies of it, and notify the sender. E-mail transmission 
cannot be guaranteed to be secure or error-free as information could be intercepted, 
corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. To the 
maximum extent permitted by law, Immersive Technologies Pty. Ltd. does not accept 
liability for any errors or omissions in the contents of this message which arise as a 
result of e-mail transmission.


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to