singrdk/base/Libraries/System.IO/__ConsoleTextWriter.cs

47 lines
1003 B
C#
Raw Normal View History

2008-03-05 09:52:00 -05:00
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
using System;
using System.IO;
using System.Text;
using System.Runtime.InteropServices;
2008-11-17 18:29:00 -05:00
// [Bartok]:
namespace System
{
2008-03-05 09:52:00 -05:00
public class __ConsoleTextWriter : TextWriter {
public __ConsoleTextWriter()
{
}
public override Encoding Encoding {
get {
return Encoding.Default;
}
}
public override void Write(char[] buffer, int index, int count)
{
Console.Write(buffer, index, count);
}
public override void Write(String str)
{
Console.Write(str);
}
public override void WriteLine(char[] buffer, int index, int count)
{
Console.WriteLine(buffer, index, count);
}
public override void WriteLine(String str)
{
Console.WriteLine(str);
}
}
}