From 3e2932bdb580538be39cccb9cc1fa306bb41cc02 Mon Sep 17 00:00:00 2001 From: Ahson Khan Date: Fri, 18 May 2018 17:39:16 -0700 Subject: [PATCH] Remove unnecessary cast now that we are targeting C# 7.3 with latest compiler (#2299) * Remove unnecessary cast now that we are targeting C# 7.3 with latest compiler * Remove extra new line in props file --- .../System/Buffers/Writer/BufferWriter_writable.cs | 4 ++-- tools/common.props | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/System.Buffers.ReaderWriter/System/Buffers/Writer/BufferWriter_writable.cs b/src/System.Buffers.ReaderWriter/System/Buffers/Writer/BufferWriter_writable.cs index da53dc3b9d7..295bd2bdb7a 100644 --- a/src/System.Buffers.ReaderWriter/System/Buffers/Writer/BufferWriter_writable.cs +++ b/src/System.Buffers.ReaderWriter/System/Buffers/Writer/BufferWriter_writable.cs @@ -11,10 +11,10 @@ public ref partial struct BufferWriter { #region Byte public bool TryWriteBytes(byte[] bytes) - => TryWriteBytes((ReadOnlySpan)bytes.AsSpan()); + => TryWriteBytes(bytes.AsSpan()); public void WriteBytes(byte[] bytes) - => WriteBytes((ReadOnlySpan)bytes.AsSpan()); + => WriteBytes(bytes.AsSpan()); public bool TryWriteBytes(ReadOnlySpan bytes) { diff --git a/tools/common.props b/tools/common.props index 4555307d245..367a8d51a19 100644 --- a/tools/common.props +++ b/tools/common.props @@ -15,7 +15,4 @@ $(MSBuildThisFileDirectory)Key.snk latest - - - \ No newline at end of file