473,320 Members | 1,881 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

What do braces do inside writeline

Console.WriteLine("{0}{1}", " ", m)

What is {0}{1} ?

Nov 21 '05 #1
2 978
"Replace With"

for example if you had:
Console.WriteLine("{0}--{1}","xxx","yyy")

Your output would look like:
"xxx--yyy"

Hope this helps...

"rokit" <gjldgjkdjgl> wrote in message
news:uQ*************@TK2MSFTNGP15.phx.gbl...
Console.WriteLine("{0}{1}", " ", m)

What is {0}{1} ?

Nov 21 '05 #2
Rokit,
As Will suggests, they allow WriteLine to do Composite Formatting.

For details on formatting see Formatting Types in MSDN:

http://msdn.microsoft.com/library/de...ttingtypes.asp

For details on Composite Formatting specifically see the Composite
Formatting topic under Formatting Types.

Hope this helps
Jay
"rokit" <gjldgjkdjgl> wrote in message
news:uQ*************@TK2MSFTNGP15.phx.gbl...
Console.WriteLine("{0}{1}", " ", m)

What is {0}{1} ?

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Jason | last post by:
Programming recently I was the habit of leaving out the braces on if statements if the branch only applied to a single line, assuming it would all work and be equivalent to "if(condition) {...
1
by: James Aguilar | last post by:
Here is some example code I found from Google's hashtable implementation: // Many STL algorithms use swap instead of copy constructors void swap(sparse_hashtable& ht) { STL_NAMESPACE::swap(hash,...
4
by: William McIlroy | last post by:
Array Bounds Exception inside system.xml.dll. Test data is a dozen GB (available for the asking on CD). Source code follows. Call into system.xml.dll happens at the while statement.. using...
1
by: marlene | last post by:
Dear Tom With this code: Public Function FTP(ascii As Boolean, send As Boolean, pathname As String, FileName As String, server As String, serverpathname As String, serverfilename As String,...
13
by: William Ryan | last post by:
I just picked up a copy of John Robbins' debugging book and started to look at disassembled code. Anyway, I hate optional Parameters in VB, but I was checking them out to see what IL is created. ...
5
by: Franco, Gustavo | last post by:
Hi, I have a question, and please I need a answer. How can I finalize a thread running with Application.Run (I need the message loop!!!) without call Thread.Abort?. I want to call...
4
by: cybervigilante | last post by:
My PHP is rusty, but I'm trying to follow Joomla code and I keep seeing reverse braces inside php blocks that look to me like they'll break the interpreter. The code works. What am I missing here?...
2
by: chrisf01 | last post by:
I am trying to write to a text file and the database at the same time. I have a For statement that loops through all the repeated fields in my form and writes it to a text file. That part works 100%...
14
by: raylopez99 | last post by:
KeyDown won't work KeyPress fails KeyDown not seen inspired by a poster here:http://tinyurl.com/62d97l I found some interesting stuff, which I reproduce below for newbies like me. The main...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.