We help IT Professionals succeed at work.

c#: how do i write more than value. it seems that Console.WriteLine(value) takes only one parameter.

gogoshar
gogoshar asked
on
175 Views
Last Modified: 2010-04-15
how do i write more than value in c#. it seems that Console.WriteLine(value) takes only one parameter.
Comment
Watch Question

Top Expert 2007

Commented:
You could do something like this:
Console.WriteLinestring.Format("One: {0} Two: {1}", value1, value2));

Jim
Top Expert 2007
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Commented:
What other kinds of things did you want to put in there??
You can put in pretty much anything for value, and it'll write it to the standard output stream...
There are lots of examples on this msdn page... ones toward the bottom with more than one parameter.

http://msdn2.microsoft.com/en-us/library/system.console.writeline(VS.71).aspx
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.