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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2015-01-14 00:34:23 +0300
committerZoltan Varga <vargaz@gmail.com>2015-01-14 00:34:23 +0300
commitc1b43669320f96e4a2a482d993b7b36bb5e59496 (patch)
treef618f341e716106fbffc86504696e8a02395e4a8 /mcs/class/corlib/System.IO/MemoryStream.cs
parent2375c74a646b46877c5441f06f231529e5206425 (diff)
[bcl] Remove NET_4_5 defines from class libs.
Diffstat (limited to 'mcs/class/corlib/System.IO/MemoryStream.cs')
-rw-r--r--mcs/class/corlib/System.IO/MemoryStream.cs6
1 files changed, 0 insertions, 6 deletions
diff --git a/mcs/class/corlib/System.IO/MemoryStream.cs b/mcs/class/corlib/System.IO/MemoryStream.cs
index 4ce86df30b6..995cf46af40 100644
--- a/mcs/class/corlib/System.IO/MemoryStream.cs
+++ b/mcs/class/corlib/System.IO/MemoryStream.cs
@@ -34,9 +34,7 @@
using System.Globalization;
using System.Runtime.InteropServices;
using System.Threading;
-#if NET_4_5
using System.Threading.Tasks;
-#endif
namespace System.IO
{
@@ -55,10 +53,8 @@ namespace System.IO
bool streamClosed;
int position;
int dirty_bytes;
-#if NET_4_5
[NonSerialized]
Task<int> read_task;
-#endif
public MemoryStream () : this (0)
{
@@ -425,7 +421,6 @@ namespace System.IO
stream.Write (internalBuffer, initialIndex, length - initialIndex);
}
-#if NET_4_5
public override Task CopyToAsync (Stream destination, int bufferSize, CancellationToken cancellationToken)
{
@@ -495,6 +490,5 @@ namespace System.IO
return Task<object>.FromException (ex);
}
}
-#endif
}
}