Re: Mass refactoring Console.WriteLine statements?
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
1) Why? The former is much more efficient.
2) I know of no reason to prefer Console.WriteLine over Trace or Debug and
many good reasons to prefer Trace over Console
"AdamM" <nospam@xxxxxxxxxx> wrote in message
news:usKdnQ1aw7eec07enZ2dnUVZ_s6dnZ2d@xxxxxxxxxxxxxx
Hi all,
Throughout my code, I have lines like this:
Console.WriteLine("This is a sample with three variables: " + a + " and " +
b + " and " + c);
Are there any VS2005 IDE plugins or utilities that would let me convert them
all easily to this:
Console.WriteLine("This is a sample with three variables: {0} and {1} and
{2}", a,b,c);
Thanks in advance!
Adam
.
Relevant Pages
- Re: {{ OT }} Oprahs on ...
... that you can trace your family back so far. ... And I have no pictures of him. ... For some reason lately, I'm craving Original Carter ... And the reason our branch left the Church in the first place is that they ... (alt.autos.toyota) - Re: OT- Taxpayer surprise, Union Pension Bailout
... Since it is obvious to you that the police would instruct one to ... initiate a trace, I would think it would be obvious to anyone that ... box flooded with emails seems like a plausible reason. ... (rec.crafts.metalworking) - Re: soldering components on larger sized pads
... No reason for that and it costs reliability. ... If you have the space for it, I'd agree there's no reason for it. ... The thinner a trace the easier it breaks, especially with this dreaded habit of not rounding corners and not doing trea-drop pad entried. ... I've used them myself (with an assembly house that said they were fine), but it was just run-of-the-mill commercial products, not medical gear. ... (sci.electronics.design) - Re: how to get deeper trace in cmucl+slime ?
... Are you sure that's the reason? ... Write FACT as a tail-recursive version and compiler/disassemble ... Err, well, unless there's tail-call optimizations going on ... trace or breakpoint at the outermost call to the traced ... (comp.lang.lisp) - Re: SQL tuning nightmare - db file sequential reads
... OS is Solaris 8. ... Ours is a data warehousing environment, ... be the reason for seeing such behaviour. ... would be curious to see what the raw 10046 trace looks like. ... (comp.databases.oracle.server) |
|