Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Private.CoreLib/src/System/String.cs')
-rw-r--r--src/System.Private.CoreLib/src/System/String.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/System.Private.CoreLib/src/System/String.cs b/src/System.Private.CoreLib/src/System/String.cs
index bb238f940..9846b15f2 100644
--- a/src/System.Private.CoreLib/src/System/String.cs
+++ b/src/System.Private.CoreLib/src/System/String.cs
@@ -403,7 +403,6 @@ namespace System
return result;
}
-#if !MONO // TODO: Undo
public static string Create<TState>(int length, TState state, SpanAction<char, TState> action)
{
if (action == null)
@@ -428,7 +427,6 @@ namespace System
public static implicit operator ReadOnlySpan<char>(string value) =>
value != null ? new ReadOnlySpan<char>(ref value.GetRawStringData(), value.Length) : default;
-#endif
public object Clone()
{
@@ -827,3 +825,13 @@ namespace System
}
}
}
+
+#if MONO
+
+namespace System.Buffers
+{
+ public delegate void SpanAction<T, in TArg>(Span<T> span, TArg arg);
+ public delegate void ReadOnlySpanAction<T, in TArg>(ReadOnlySpan<T> span, TArg arg);
+}
+
+#endif