Cosmos/source/Cosmos.System2_Plugs/System/IO/TextWriterImpl.cs
fanoI 299c155f4c Removed a lot of plugs from File: the promise is mantained it uses StreamReader / StreamWriter directly
- CosmosEncoding replacement of Encoding is not needed: Encoding runs perfectly on Cosmos!
- Added tests to BCL for UTF8Encoding
- StreamWriter does not needs a plug anymore, TextWriter is plugged instead but the plug is really the Ctor only
- Commented COSMOSDEBUG
2017-12-01 22:21:15 +01:00

18 lines
491 B
C#

//#define COSMOSDEBUG
using System;
using System.IO;
using Cosmos.System;
using Cosmos.IL2CPU.API.Attribs;
using System.Text;
namespace Cosmos.System_Plugs.System.IO
{
[Plug(Target = typeof(TextWriter))]
public static class TextWriterImpl
{
public static void Ctor(TextWriter aThis, [FieldAccess(Name = "System.Char[] System.IO.TextWriter.CoreNewLine")] ref char[] CoreNewLine)
{
CoreNewLine = Environment.NewLine.ToCharArray();
}
}
}