mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 12:58:39 +00:00
26 lines
813 B
C#
26 lines
813 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Cosmos.IL2CPU.Plugs;
|
|
|
|
namespace Cosmos.IL2CPU.CustomImplementation.System.Text
|
|
{
|
|
[Plug(Target = typeof(StringBuilder))]
|
|
public static class StringBuilderImpl
|
|
{
|
|
public static string ToString(StringBuilder aThis)
|
|
{
|
|
var xResult = new char[aThis.Length];
|
|
int xLength = aThis.Length;
|
|
for (int i = 0; i < xLength; i++)
|
|
{
|
|
xResult[i] = aThis[i];
|
|
}
|
|
var xResultStr = new String(xResult);
|
|
Console.WriteLine("ResultStr.Length: " + xResultStr.Length);
|
|
Console.WriteLine("ResultStr: " + xResultStr);
|
|
return xResultStr;
|
|
}
|
|
}
|
|
}
|