Re: Is there a performance difference between TextWriter.WriteLine(String) and TextWriteLine(String, array<Object>[])?
- From: "Paul E Collins" <find_my_real_address@xxxxxxx>
- Date: Mon, 23 Jun 2008 19:41:44 +0100
"Author" <gnewsgroup@xxxxxxxxx> wrote:
OK, thank you very much. Just curious, why do they introduce the second
version (the one using String.Format), which is sorta like the tradtional
C syntax of printf?
You might want to store the format template somewhere.
For example, consider messages that need to be translated into different
languages with different word order:
"{0} caused a {1} error"
"Une erreur du type {1} s'est produite dans {0}"
Then you can use the same String.Format call with the same parameters.
Eq.
.
- References:
- Is there a performance difference between TextWriter.WriteLine(String) and TextWriteLine(String, array<Object>[])?
- From: Author
- Re: Is there a performance difference between TextWriter.WriteLine(String) and TextWriteLine(String, array<Object>[])?
- From: Jon Skeet [C# MVP]
- Re: Is there a performance difference between TextWriter.WriteLine(String) and TextWriteLine(String, array<Object>[])?
- From: Author
- Is there a performance difference between TextWriter.WriteLine(String) and TextWriteLine(String, array<Object>[])?
- Prev by Date: Re: Managed/unmanaged 32 bit DLL and 32 bit C# under windows x64 compatibility issues.
- Next by Date: Re: File.Exist() misreporting?
- Previous by thread: Re: Is there a performance difference between TextWriter.WriteLine(String) and TextWriteLine(String, array<Object>[])?
- Next by thread: What should I name my business classes given that LINQ data classes takes all table names?
- Index(es):
Relevant Pages
|