diff options
author | Marek Safar <marek.safar@gmail.com> | 2018-06-14 13:03:58 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2018-06-14 13:03:58 +0300 |
commit | 4e0eefb490be67d0ecf2057086df3cdb9d789a35 (patch) | |
tree | 574af8b536a07f38c31d822187acab7db73fbbc0 | |
parent | f57cc36d292953fa8acaff4855da3c901cfdf1fa (diff) |
Fixes compilation without fast-span
-rw-r--r-- | src/Common/src/CoreLib/System/String.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/src/CoreLib/System/String.cs b/src/Common/src/CoreLib/System/String.cs index 8af736978a..9812301000 100644 --- a/src/Common/src/CoreLib/System/String.cs +++ b/src/Common/src/CoreLib/System/String.cs @@ -345,7 +345,7 @@ namespace System wstrcpy(dest, src, value.Length); return result; } - +#if !MONO // Requires fast-span public static string Create<TState>(int length, TState state, SpanAction<char, TState> action) { if (action == null) @@ -366,7 +366,7 @@ namespace System [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator ReadOnlySpan<char>(string value) => value != null ? new ReadOnlySpan<char>(ref value.GetRawStringData(), value.Length) : default; - +#endif public object Clone() { return this; |