System::Console Class Reference

Static Public Member Functions

template<class T >
static void Write (const SharedPtr< T > &object)
 
static void Write (bool value)
 
static void Write (char_t value)
 
static void Write (const SharedPtr< Array< char_t >> &buffer)
 
static void Write (Decimal value)
 
static void Write (double value)
 
static void Write (float value)
 
static void Write (int32_t value)
 
static void Write (int64_t value)
 
static void Write (const String &value)
 
static void Write (const char_t *value)
 
static void Write (const TypeInfo &value)
 
static void Write (uint32_t value)
 
static void Write (uint64_t value)
 
static void Write (const SharedPtr< Array< char_t >> &buffer, int32_t index, int32_t count)
 
template<class... Args>
static void Write (const String &format, const Args &... args)
 
static void WriteLine ()
 Outputs the current line terminator to the standard output stream. More...
 
template<class T >
static void WriteLine (const SharedPtr< T > &object)
 
static void WriteLine (bool value)
 
static void WriteLine (char_t value)
 
static void WriteLine (const SharedPtr< Array< char_t >> &buffer)
 
static void WriteLine (Decimal value)
 
static void WriteLine (double value)
 
static void WriteLine (float value)
 
static void WriteLine (int32_t value)
 
static void WriteLine (int64_t value)
 
static void WriteLine (const String &value)
 
static void WriteLine (const char_t *value)
 
static void WriteLine (const TypeInfo &value)
 
static void WriteLine (uint32_t value)
 
static void WriteLine (uint64_t value)
 
static void WriteLine (const SharedPtr< Array< char_t >> &buffer, int index, int count)
 
static void WriteLine (const System::Exception &e)
 
template<class... Args>
static void WriteLine (const String &format, const Args &... args)
 
static void Beep ()
 
static SharedPtr< System::IO::TextWriter > & get_Out ()
 Returns a shared pointer pointing to the object that represents the standard output stream. More...
 
static SharedPtr< System::IO::TextWriter > & get_Error ()
 Returns a shared pointer pointing to the object that represents the standard error stream. More...
 
static void SetOut (const SharedPtr< System::IO::TextWriter > &value)
 
static void Mute (bool muted)
 
static void ReadKey ()
 NOT IMPLEMENTED. More...
 

Detailed Description

Provides methods for outputting data to the standard output stream. This is a static type with no instance services. You should never create instances of it by any means.

Member Function Documentation

◆ Beep()

static void System::Console::Beep ( )
inlinestatic

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ get_Error()

static SharedPtr<System::IO::TextWriter>& System::Console::get_Error ( )
static

Returns a shared pointer pointing to the object that represents the standard error stream.

◆ get_Out()

static SharedPtr<System::IO::TextWriter>& System::Console::get_Out ( )
static

Returns a shared pointer pointing to the object that represents the standard output stream.

◆ Mute()

static void System::Console::Mute ( bool  muted)
static

Mutes or unmutes the standard output stream.

Parameters
mutedSpecifies if the standard output stream should be muted (true) or unmuted (false)

◆ ReadKey()

static void System::Console::ReadKey ( )
static

NOT IMPLEMENTED.

◆ SetOut()

static void System::Console::SetOut ( const SharedPtr< System::IO::TextWriter > &  value)
static

Assigns the specified object to the clss' Out property.

Parameters
valueThe TextWrite object to assign to the Out property

◆ Write() [1/16]

template<class T >
static void System::Console::Write ( const SharedPtr< T > &  object)
inlinestatic

Outputs the string representation of the specified object to the standard output stream.

Parameters
objectObject to output
Template Parameters
TType of the object to output

◆ Write() [2/16]

static void System::Console::Write ( bool  value)
static

Outputs the string representation of bool value to the standard output stream.

Parameters
valueThe value to output

◆ Write() [3/16]

static void System::Console::Write ( char_t  value)
static

Outputs the specified character value to the standard output stream.

Parameters
valueThe value to output

◆ Write() [4/16]

static void System::Console::Write ( const SharedPtr< Array< char_t >> &  buffer)
static

Outputs the string representation of the specified character array to the standard output stream.

Parameters
bufferThe array to output

◆ Write() [5/16]

static void System::Console::Write ( Decimal  value)
static

Outputs the string representation of Decimal value to the standard output stream.

Parameters
valueThe value to output

◆ Write() [6/16]

static void System::Console::Write ( double  value)
static

Outputs the string representation of double-precision floating-point value to the standard output stream.

Parameters
valueThe value to output

◆ Write() [7/16]

static void System::Console::Write ( float  value)
static

Outputs the string representation of single-precision floating-point value to the standard output stream.

Parameters
valueThe value to output

◆ Write() [8/16]

static void System::Console::Write ( int32_t  value)
static

Outputs the string representation of 32-bit integer value to the standard output stream.

Parameters
valueThe value to output

◆ Write() [9/16]

static void System::Console::Write ( int64_t  value)
static

Outputs the string representation of 64-bit integer value to the standard output stream.

Parameters
valueThe value to output

◆ Write() [10/16]

static void System::Console::Write ( const String value)
static

Outputs the specified string object to the standard output stream.

Parameters
valueThe string object to output

◆ Write() [11/16]

static void System::Console::Write ( const char_t *  value)
static

Outputs the specified c-string to the standard output stream.

Parameters
valueThe c-string to output

◆ Write() [12/16]

static void System::Console::Write ( const TypeInfo value)
static

Outputs the string representation of TypeInfo value to the standard output stream.

Parameters
valueThe value to output

◆ Write() [13/16]

static void System::Console::Write ( uint32_t  value)
static

Outputs the string representation of unsigned 32-bit integer value to the standard output stream.

Parameters
valueThe value to output

◆ Write() [14/16]

static void System::Console::Write ( uint64_t  value)
static

Outputs the string representation of unsigned 64-bit integer value to the standard output stream.

Parameters
valueThe value to output

◆ Write() [15/16]

static void System::Console::Write ( const SharedPtr< Array< char_t >> &  buffer,
int32_t  index,
int32_t  count 
)
static

Outputs the string representation of the specified range of the specified character array to the standard output stream.

Parameters
bufferThe character array
indexThe index in the array at which the range to output begins
countThe number of elements in the range to output

◆ Write() [16/16]

template<class... Args>
static void System::Console::Write ( const String format,
const Args &...  args 
)
inlinestatic

Outputs the string representation of the specified arguments formatted according to the specified format to the standard output stream.

Parameters
formatThe string format
argsThe values to output
Template Parameters
Thetypes of the values to output

◆ WriteLine() [1/18]

static void System::Console::WriteLine ( )
static

Outputs the current line terminator to the standard output stream.

◆ WriteLine() [2/18]

template<class T >
static void System::Console::WriteLine ( const SharedPtr< T > &  object)
inlinestatic

Outputs the string representation of the specified object followed by the current line terminator to the standard output stream.

Parameters
objectObject to output
Template Parameters
TType of the object to output

◆ WriteLine() [3/18]

static void System::Console::WriteLine ( bool  value)
static

Outputs the string representation of bool value followed by the current line terminator to the standard output stream.

Parameters
valueThe value to output

◆ WriteLine() [4/18]

static void System::Console::WriteLine ( char_t  value)
static

Outputs the specified character value followed by the current line terminator to the standard output stream.

Parameters
valueThe value to output

◆ WriteLine() [5/18]

static void System::Console::WriteLine ( const SharedPtr< Array< char_t >> &  buffer)
static

Outputs the string representation of the specified character array followed by the current line terminator to the standard output stream.

Parameters
bufferThe array to output

◆ WriteLine() [6/18]

static void System::Console::WriteLine ( Decimal  value)
static

Outputs the string representation of Decimal value followed by the current line terminator to the standard output stream.

Parameters
valueThe value to output

◆ WriteLine() [7/18]

static void System::Console::WriteLine ( double  value)
static

Outputs the string representation of double-precision floating-point value followed by the current line terminator to the standard output stream.

Parameters
valueThe value to output

◆ WriteLine() [8/18]

static void System::Console::WriteLine ( float  value)
static

Outputs the string representation of single-precision floating-point value followed by the current line terminator to the standard output stream.

Parameters
valueThe value to output

◆ WriteLine() [9/18]

static void System::Console::WriteLine ( int32_t  value)
static

Outputs the string representation of 32-bit integer value followed by the current line terminator to the standard output stream.

Parameters
valueThe value to output

◆ WriteLine() [10/18]

static void System::Console::WriteLine ( int64_t  value)
static

Outputs the string representation of 64-bit integer value followed by the current line terminator to the standard output stream.

Parameters
valueThe value to output

◆ WriteLine() [11/18]

static void System::Console::WriteLine ( const String value)
static

Outputs the specified string object followed by the current line terminator to the standard output stream.

Parameters
valueThe string object to output

◆ WriteLine() [12/18]

static void System::Console::WriteLine ( const char_t *  value)
static

Outputs the specified c-string followed by the current line terminator to the standard output stream.

Parameters
valueThe c-string to output

◆ WriteLine() [13/18]

static void System::Console::WriteLine ( const TypeInfo value)
static

Outputs the string representation of TypeInfo value followed by the current line terminator to the standard output stream.

Parameters
valueThe value to output

◆ WriteLine() [14/18]

static void System::Console::WriteLine ( uint32_t  value)
static

Outputs the string representation of unsigned 32-bit integer value followed by the current line terminator to the standard output stream.

Parameters
valueThe value to output

◆ WriteLine() [15/18]

static void System::Console::WriteLine ( uint64_t  value)
static

Outputs the string representation of unsigned 64-bit integer value followed by the current line terminator to the standard output stream.

Parameters
valueThe value to output

◆ WriteLine() [16/18]

static void System::Console::WriteLine ( const SharedPtr< Array< char_t >> &  buffer,
int  index,
int  count 
)
static

Outputs the string representation of the specified range of the specified character array followed by the current line terminator to the standard output stream.

Parameters
bufferThe character array
indexThe index in the array at which the range to output begins
countThe number of elements in the range to output

◆ WriteLine() [17/18]

static void System::Console::WriteLine ( const System::Exception e)
static

Outputs the string representation of the specified Exception object followed by the current line terminator to the standard output stream.

Parameters
eThe value to output

◆ WriteLine() [18/18]

template<class... Args>
static void System::Console::WriteLine ( const String format,
const Args &...  args 
)
inlinestatic

Outputs the string representation of the specified arguments formatted according to the specified format followed by the current line terminator to the standard output stream.

Parameters
formatThe string format
argsThe values to output
Template Parameters
Thetypes of the values to output