Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
System Namespace
Console Class
Console Methods
WriteLine Method
Collapse All/Expand All Collapse All
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
Console..::.WriteLine Method

Writes the specified data, followed by the current line terminator, to the standard output stream.

  NameDescription
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteLine()()()Writes the current line terminator to the standard output stream.
Public methodStatic memberWriteLine(Boolean)Writes the text representation of the specified Boolean value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteLine(Char)Writes the specified Unicode character, followed by the current line terminator, value to the standard output stream.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteLine(array<Char>[]()[])Writes the specified array of Unicode characters, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(Decimal)Writes the text representation of the specified Decimal value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(Double)Writes the text representation of the specified double-precision floating-point value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteLine(Int32)Writes the text representation of the specified 32-bit signed integer value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(Int64)Writes the text representation of the specified 64-bit signed integer value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteLine(Object)Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(Single)Writes the text representation of the specified single-precision floating-point value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteLine(String)Writes the specified string value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(UInt32)Writes the text representation of the specified 32-bit unsigned integer value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(UInt64)Writes the text representation of the specified 64-bit unsigned integer value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteLine(String, Object)Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream using the specified format information.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteLine(String, array<Object>[]()[])Writes the text representation of the specified array of objects, followed by the current line terminator, to the standard output stream using the specified format information.
Public methodStatic memberWriteLine(array<Char>[]()[], Int32, Int32)Writes the specified subarray of Unicode characters, followed by the current line terminator, to the standard output stream.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteLine(String, Object, Object)Writes the text representation of the specified objects, followed by the current line terminator, to the standard output stream using the specified format information.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteLine(String, Object, Object, Object)Writes the text representation of the specified objects, followed by the current line terminator, to the standard output stream using the specified format information.
Public methodStatic memberWriteLine(String, Object, Object, Object, Object)Writes the text representation of the specified objects and variable-length parameter list, followed by the current line terminator, to the standard output stream using the specified format information.
Top
Community Content   What is Community Content?
Add new content RSS  Annotations
Writing more than 2044 0x00 char's halt the thread for infinity      LarsOutzen   |   Edit   |   Show History

var s = string.Empty;

for (int i = 0; i < 10000; i++) s += (char) 0x00;

Console.WriteLine(s); // "Break all" = Pause, breaks here?

Could this be a security issue? E.g. a possible ASP.NET DoS attack...

Tags What's this?: bug (x) Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker