Console.WriteLine

Experts,
What does "Console.WriteLine" do? What are its usages? And if i have it in a class, then how do i make use of its output?
feesuAsked:
Who is Participating?
 
Solar_FlareCommented:
in a console application it will ouput the characters.

in a windows forms app during debugging it will output the characters to the Output window (Debug>Windows>Output)
0
 
feesuAuthor Commented:
So if i've got a class that writes some output to the console, do i have to change it to something else such as ruturn string value so that i use the output of that function or class? cuz i need to make use of the class's function!
0
 
Solar_FlareCommented:
yes, if you need to use the resulting string then don't use console.writeline, return a string from that class or something like that
0
 
feesuAuthor Commented:
thank you!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.