From 1ba7fa2a4fdfd789f61b71ace03608d4f8427eca Mon Sep 17 00:00:00 2001 From: Wes Haggard Date: Mon, 7 May 2018 10:09:56 -0700 Subject: [PATCH] 2.1-rc1 API diff between preview2 and rc1 --- .../2.1/Preview/api-diff/rc1/2.1-rc1.md | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 release-notes/2.1/Preview/api-diff/rc1/2.1-rc1.md diff --git a/release-notes/2.1/Preview/api-diff/rc1/2.1-rc1.md b/release-notes/2.1/Preview/api-diff/rc1/2.1-rc1.md new file mode 100644 index 00000000000..89f6c9976b1 --- /dev/null +++ b/release-notes/2.1/Preview/api-diff/rc1/2.1-rc1.md @@ -0,0 +1,80 @@ +# API Difference release-2.1-preview2 vs release-2.1-rc1 + +API listing follows standard diff formatting. Lines preceded by a '+' are +additions and a '-' indicates removal. + +* [System](#system) +* [System.Buffers](#systembuffers) +* [System.Runtime.InteropServices](#systemruntimeinteropservices) + +## System + +``` diff + namespace System { + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public struct Decimal : IComparable, IComparable, IConvertible, IDeserializationCallback, IEquatable, IFormattable { +- public static Decimal Parse(ReadOnlySpan s, NumberStyles style=(NumberStyles)(7), IFormatProvider provider=null); ++ public static Decimal Parse(ReadOnlySpan s, NumberStyles style=(NumberStyles)(111), IFormatProvider provider=null); + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public struct Double : IComparable, IComparable, IConvertible, IEquatable, IFormattable { +- public static Double Parse(ReadOnlySpan s, NumberStyles style=(NumberStyles)(7), IFormatProvider provider=null); ++ public static Double Parse(ReadOnlySpan s, NumberStyles style=(NumberStyles)(231), IFormatProvider provider=null); + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public struct Memory { +- public Memory(MemoryManager manager, int start, int length); + +- public static Memory CreateFromPinnedArray(T[] array, int start, int length); + + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public struct ReadOnlySpan { ++ public ref T GetPinnableReference(); + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public struct SequencePosition : IEquatable { +- public static bool operator ==(SequencePosition left, SequencePosition right); + +- public static bool operator !=(SequencePosition left, SequencePosition right); + + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public struct Single : IComparable, IComparable, IConvertible, IEquatable, IFormattable { +- public static Single Parse(ReadOnlySpan s, NumberStyles style=(NumberStyles)(7), IFormatProvider provider=null); ++ public static Single Parse(ReadOnlySpan s, NumberStyles style=(NumberStyles)(231), IFormatProvider provider=null); + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public struct Span { ++ public ref T GetPinnableReference(); + } + } +``` + +## System.Buffers + +``` diff + namespace System.Buffers { + public abstract class MemoryManager : IDisposable, IMemoryOwner, IPinnable { +- public virtual int Length { get; } + ++ protected Memory CreateMemory(int length); ++ protected Memory CreateMemory(int start, int length); + } + } +``` + +## System.Runtime.InteropServices + +``` diff + namespace System.Runtime.InteropServices { + public static class MemoryMarshal { ++ public static Memory CreateFromPinnedArray(T[] array, int start, int length); + } + public static class SequenceMarshal { +- public static bool TryGetMemoryManager(ReadOnlySequence sequence, out MemoryManager manager, out int start, out int length); + + } + } +``` +