From 8d363be3973019a451a220aa8b49d3a3317dc357 Mon Sep 17 00:00:00 2001 From: Jose Perez Rodriguez Date: Mon, 12 Sep 2016 09:44:39 -0700 Subject: Adding missing String members to coreclr --- src/mscorlib/model.xml | 7 +++++-- src/mscorlib/ref/mscorlib.cs | 15 +++++++++++++++ src/mscorlib/src/System/String.cs | 2 -- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/mscorlib/model.xml b/src/mscorlib/model.xml index 90b5ad12dc..8a02543bdc 100644 --- a/src/mscorlib/model.xml +++ b/src/mscorlib/model.xml @@ -7039,16 +7039,17 @@ + + - - + @@ -7070,6 +7071,7 @@ + @@ -7153,6 +7155,7 @@ + diff --git a/src/mscorlib/ref/mscorlib.cs b/src/mscorlib/ref/mscorlib.cs index de0a6934a8..e311d1e77f 100644 --- a/src/mscorlib/ref/mscorlib.cs +++ b/src/mscorlib/ref/mscorlib.cs @@ -3145,6 +3145,8 @@ namespace System public static System.String Concat(object arg0) { throw null; } public static System.String Concat(object arg0, object arg1) { throw null; } public static System.String Concat(object arg0, object arg1, object arg2) { throw null; } + [System.CLSCompliantAttribute(false)] + public static System.String Concat(object arg0, object arg1, object arg2, object arg3, __arglist) { throw null; } [System.Security.SecuritySafeCriticalAttribute] public static System.String Concat(params object[] args) { throw null; } [System.Security.SecuritySafeCriticalAttribute] @@ -3182,6 +3184,7 @@ namespace System public static System.String Format(System.String format, object arg0, object arg1) { throw null; } public static System.String Format(System.String format, object arg0, object arg1, object arg2) { throw null; } public static System.String Format(System.String format, params object[] args) { throw null; } + public System.CharEnumerator GetEnumerator() { throw null; } [System.Security.SecuritySafeCriticalAttribute] public override int GetHashCode() { throw null; } public System.TypeCode GetTypeCode() { throw null; } @@ -3254,6 +3257,12 @@ namespace System [System.Security.SecuritySafeCriticalAttribute] public System.String Replace(char oldChar, char newChar) { throw null; } public System.String Replace(System.String oldValue, System.String newValue) { throw null; } + [System.Runtime.InteropServices.ComVisibleAttribute(false)] + public string[] Split(char separator) { throw null; } + [System.Runtime.InteropServices.ComVisibleAttribute(false)] + public string[] Split(char separator, int count, System.StringSplitOptions options) { throw null; } + [System.Runtime.InteropServices.ComVisibleAttribute(false)] + public string[] Split(char separator, System.StringSplitOptions options) { throw null; } public string[] Split(params char[] separator) { throw null; } public string[] Split(char[] separator, int count) { throw null; } [System.Runtime.InteropServices.ComVisibleAttribute(false)] @@ -3261,6 +3270,12 @@ namespace System [System.Runtime.InteropServices.ComVisibleAttribute(false)] public string[] Split(char[] separator, System.StringSplitOptions options) { throw null; } [System.Runtime.InteropServices.ComVisibleAttribute(false)] + public string[] Split(System.String separator) { throw null; } + [System.Runtime.InteropServices.ComVisibleAttribute(false)] + public string[] Split(System.String separator, int count, System.StringSplitOptions options) { throw null; } + [System.Runtime.InteropServices.ComVisibleAttribute(false)] + public string[] Split(System.String separator, System.StringSplitOptions options) { throw null; } + [System.Runtime.InteropServices.ComVisibleAttribute(false)] public string[] Split(string[] separator, int count, System.StringSplitOptions options) { throw null; } [System.Runtime.InteropServices.ComVisibleAttribute(false)] public string[] Split(string[] separator, System.StringSplitOptions options) { throw null; } diff --git a/src/mscorlib/src/System/String.cs b/src/mscorlib/src/System/String.cs index d406fd09b3..4430357818 100644 --- a/src/mscorlib/src/System/String.cs +++ b/src/mscorlib/src/System/String.cs @@ -851,14 +851,12 @@ namespace System { [MethodImplAttribute(MethodImplOptions.InternalCall)] internal extern bool TryGetTrailByte(out byte data); -#if !FEATURE_CORECLR public CharEnumerator GetEnumerator() { Contract.Ensures(Contract.Result() != null); Contract.EndContractBlock(); BCLDebug.Perf(false, "Avoid using String's CharEnumerator until C# special cases foreach on String - use the indexed property on String instead."); return new CharEnumerator(this); } -#endif // !FEATURE_CORECLR IEnumerator IEnumerable.GetEnumerator() { Contract.Ensures(Contract.Result>() != null); -- cgit v1.2.3