mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-10 10:11:31 +00:00
- 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
18 lines
491 B
C#
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();
|
|
}
|
|
}
|
|
}
|