mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-13 03:31:22 +00:00
comment out ToString for StringBuilder, there is no need for plug anymore
This commit is contained in:
parent
8cd3d9cf47
commit
b1f09d2f16
1 changed files with 17 additions and 16 deletions
|
|
@ -5,20 +5,21 @@ 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);
|
||||
return xResultStr;
|
||||
}
|
||||
}
|
||||
{
|
||||
// no need for plug, after 64 bit support
|
||||
//[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);
|
||||
// return xResultStr;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue