Click here to Skip to main content
15,888,579 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting current instance of another class Pin
Paresh Gheewala17-Apr-03 12:31
Paresh Gheewala17-Apr-03 12:31 
GeneralDotfuscator VS.Net license? need URL Pin
Bog16-Apr-03 17:05
Bog16-Apr-03 17:05 
GeneralRe: Dotfuscator VS.Net license? need URL Pin
James T. Johnson16-Apr-03 18:45
James T. Johnson16-Apr-03 18:45 
GeneralRe: Dotfuscator VS.Net license? need URL Pin
Roger Alsing16-Apr-03 20:43
Roger Alsing16-Apr-03 20:43 
Generalopening File Pin
plextoR16-Apr-03 12:19
plextoR16-Apr-03 12:19 
GeneralSaving file & opening it form another app Pin
plextoR16-Apr-03 12:03
plextoR16-Apr-03 12:03 
GeneralRe: Saving file & opening it form another app Pin
Paresh Gheewala17-Apr-03 12:30
Paresh Gheewala17-Apr-03 12:30 
GeneralRe: Saving file & opening it form another app Pin
plextoR17-Apr-03 13:11
plextoR17-Apr-03 13:11 
GeneralC# forms[design] Pin
davidj0x116-Apr-03 11:37
davidj0x116-Apr-03 11:37 
GeneralRe: C# forms[design] Pin
Andres Manggini16-Apr-03 13:25
Andres Manggini16-Apr-03 13:25 
GeneralRe: C# forms[design] Pin
davidj0x117-Apr-03 5:36
davidj0x117-Apr-03 5:36 
GeneralListview item click events Pin
vlusardi16-Apr-03 10:46
vlusardi16-Apr-03 10:46 
GeneralRe: Listview item click events Pin
James T. Johnson16-Apr-03 14:12
James T. Johnson16-Apr-03 14:12 
GeneralRe: Listview item click events Pin
chito16-Apr-03 16:24
chito16-Apr-03 16:24 
GeneralRe: Listview item click events Pin
vlusardi17-Apr-03 11:00
vlusardi17-Apr-03 11:00 
QuestionSqlDataAdapter .Fill() using DataTable instead of DataSet? Pin
zoltan_ie16-Apr-03 7:15
zoltan_ie16-Apr-03 7:15 
AnswerRe: SqlDataAdapter .Fill() using DataTable instead of DataSet? Pin
James T. Johnson16-Apr-03 7:30
James T. Johnson16-Apr-03 7:30 
GeneralRe: SqlDataAdapter .Fill() using DataTable instead of DataSet? Pin
zoltan_ie16-Apr-03 22:45
zoltan_ie16-Apr-03 22:45 
GeneralGet proc only for current user Pin
Alex Korchemniy16-Apr-03 5:50
Alex Korchemniy16-Apr-03 5:50 
GeneralRe: Get proc only for current user Pin
Mazdak16-Apr-03 8:30
Mazdak16-Apr-03 8:30 
GeneralOwnerdrawn StatusBarPanel Pin
monrobot1316-Apr-03 5:48
monrobot1316-Apr-03 5:48 
GeneralRe: Ownerdrawn StatusBarPanel Pin
Alex Korchemniy16-Apr-03 5:55
Alex Korchemniy16-Apr-03 5:55 
GeneralArgument-substitution vs Concatenation Pin
Alvaro Mendez16-Apr-03 4:37
Alvaro Mendez16-Apr-03 4:37 
GeneralRe: Argument-substitution vs Concatenation Pin
Alex Korchemniy16-Apr-03 5:54
Alex Korchemniy16-Apr-03 5:54 
GeneralRe: Argument-substitution vs Concatenation Pin
James T. Johnson16-Apr-03 7:00
James T. Johnson16-Apr-03 7:00 
Alvaro Mendez wrote:
I'd like to get some opinions on the pros and cons of each approach.

By using the argument substitution you can add additional formatting to the WriteLine call (such as pad numbers or strings) which you may or may not be able to do the other way, depending on how the ToString method is written for each variable's type.

Another advantage is if you are localizing your application you only have one string to replace instead of 2 for your example.

As you point out the con is that you aren't placing the variable right there so you need to reference back and forth to get the whole picture.

Alvaro Mendez wrote:
as Debug.WriteLine and Trace.WriteLine

A shame too, I find myself having to do: string.Format inside of the WriteLine method Frown | :(

James

"It is self repeating, of unknown pattern"
Data - Star Trek: The Next Generation

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.