From 6ed36d75b6598147ca027b275dac8e39afa4cf71 Mon Sep 17 00:00:00 2001 From: Charles Betros Date: Sat, 26 Dec 2015 18:55:32 -0600 Subject: [PATCH] Set string.empty. --- source/Cosmos.Core.Plugs/System/StringImpl.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/Cosmos.Core.Plugs/System/StringImpl.cs b/source/Cosmos.Core.Plugs/System/StringImpl.cs index f13dfcb3d..5a9cfd830 100644 --- a/source/Cosmos.Core.Plugs/System/StringImpl.cs +++ b/source/Cosmos.Core.Plugs/System/StringImpl.cs @@ -12,9 +12,11 @@ namespace Cosmos.Core.Plugs.System public static unsafe void Ctor( string aThis, char[] aChars, + [FieldAccess(Name = "System.String System.String.Empty")] ref string aStringEmpty, [FieldAccess(Name = "System.Int32 System.String.m_stringLength")] ref int aStringLength, [FieldAccess(Name = "System.Char System.String.m_firstChar")] char* aFirstChar) { + aStringEmpty = ""; aStringLength = aChars.Length; for (int i = 0; i < aChars.Length; i++) { @@ -27,9 +29,11 @@ namespace Cosmos.Core.Plugs.System char[] aChars, int start, int length, + [FieldAccess(Name = "System.String System.String.Empty")] ref string aStringEmpty, [FieldAccess(Name = "System.Int32 System.String.m_stringLength")] ref int aStringLength, [FieldAccess(Name = "System.Char System.String.m_firstChar")] char* aFirstChar) { + aStringEmpty = ""; aStringLength = length; for (int i = 0; i < length; i++) { @@ -41,9 +45,11 @@ namespace Cosmos.Core.Plugs.System string aThis, char aChar, int aLength, + [FieldAccess(Name = "System.String System.String.Empty")] ref string aStringEmpty, [FieldAccess(Name = "System.Int32 System.String.m_stringLength")] ref int aStringLength, [FieldAccess(Name = "System.Char System.String.m_firstChar")] char* aFirstChar) { + aStringEmpty = ""; aStringLength = aLength; for (int i = 0; i < aLength; i++) {