api diff for preview 7 (#4977)
This commit is contained in:
parent
79fb04cd51
commit
805ab19e76
|
@ -1,6 +1,6 @@
|
|||
# .NET 5.0 Preview 6 API Changes
|
||||
# .NET 5.0 Preview 5 API Changes
|
||||
|
||||
The following API changes were made in .NET 5.0 Preview 6:
|
||||
The following API changes were made in .NET 5.0 Preview 5:
|
||||
|
||||
- [.NET](./.Net/5.0-preview6.md)
|
||||
- [ASP.NET](./Asp.Net/5.0-preview6.md)
|
||||
- [.NET](./.Net/5.0-preview5.md)
|
||||
- [ASP.NET](./Asp.Net/5.0-preview5.md)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# .NET 5.0 Preview 5 API Changes
|
||||
# .NET 5.0 Preview 6 API Changes
|
||||
|
||||
The following API changes were made in .NET 5.0 Preview 5:
|
||||
The following API changes were made in .NET 5.0 Preview 6:
|
||||
|
||||
- [.NET](./.Net/5.0-preview5.md)
|
||||
- [ASP.NET](./Asp.Net/5.0-preview5.md)
|
||||
- [.NET](./.Net/5.0-preview6.md)
|
||||
- [ASP.NET](./Asp.Net/5.0-preview6.md)
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
# API Difference net5.0-preview6 vs net5.0-preview7
|
||||
|
||||
API listing follows standard diff formatting. Lines preceded by a '+' are
|
||||
additions and a '-' indicates removal.
|
||||
|
||||
* [System](5.0-preview7_System.md)
|
||||
* [System.Diagnostics.CodeAnalysis](5.0-preview7_System.Diagnostics.CodeAnalysis.md)
|
||||
* [System.Formats.Asn1](5.0-preview7_System.Formats.Asn1.md)
|
||||
* [System.IO](5.0-preview7_System.IO.md)
|
||||
* [System.Net](5.0-preview7_System.Net.md)
|
||||
* [System.Runtime.CompilerServices](5.0-preview7_System.Runtime.CompilerServices.md)
|
||||
* [System.Runtime.InteropServices](5.0-preview7_System.Runtime.InteropServices.md)
|
||||
* [System.Runtime.Intrinsics](5.0-preview7_System.Runtime.Intrinsics.md)
|
||||
* [System.Runtime.Intrinsics.Arm](5.0-preview7_System.Runtime.Intrinsics.Arm.md)
|
||||
* [System.Security.Cryptography.X509Certificates](5.0-preview7_System.Security.Cryptography.X509Certificates.md)
|
||||
* [System.Text](5.0-preview7_System.Text.md)
|
||||
* [System.Threading.Tasks](5.0-preview7_System.Threading.Tasks.md)
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
# System.Diagnostics.CodeAnalysis
|
||||
|
||||
``` diff
|
||||
namespace System.Diagnostics.CodeAnalysis {
|
||||
public enum DynamicallyAccessedMemberTypes {
|
||||
- DefaultConstructor = 1,
|
||||
|
||||
+ PublicParameterlessConstructor = 1,
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -0,0 +1,222 @@
|
|||
# System.Formats.Asn1
|
||||
|
||||
``` diff
|
||||
+namespace System.Formats.Asn1 {
|
||||
+ public readonly struct Asn1Tag : IEquatable<Asn1Tag> {
|
||||
+ public static readonly Asn1Tag Boolean;
|
||||
+ public static readonly Asn1Tag ConstructedBitString;
|
||||
+ public static readonly Asn1Tag ConstructedOctetString;
|
||||
+ public static readonly Asn1Tag Enumerated;
|
||||
+ public static readonly Asn1Tag GeneralizedTime;
|
||||
+ public static readonly Asn1Tag Integer;
|
||||
+ public static readonly Asn1Tag Null;
|
||||
+ public static readonly Asn1Tag ObjectIdentifier;
|
||||
+ public static readonly Asn1Tag PrimitiveBitString;
|
||||
+ public static readonly Asn1Tag PrimitiveOctetString;
|
||||
+ public static readonly Asn1Tag Sequence;
|
||||
+ public static readonly Asn1Tag SetOf;
|
||||
+ public static readonly Asn1Tag UtcTime;
|
||||
+ public Asn1Tag(TagClass tagClass, int tagValue, bool isConstructed = false);
|
||||
+ public Asn1Tag(UniversalTagNumber universalTagNumber, bool isConstructed = false);
|
||||
+ public bool IsConstructed { get; }
|
||||
+ public TagClass TagClass { get; }
|
||||
+ public int TagValue { get; }
|
||||
+ public Asn1Tag AsConstructed();
|
||||
+ public Asn1Tag AsPrimitive();
|
||||
+ public int CalculateEncodedSize();
|
||||
+ public static Asn1Tag Decode(ReadOnlySpan<byte> source, out int bytesConsumed);
|
||||
+ public int Encode(Span<byte> destination);
|
||||
+ public bool Equals(Asn1Tag other);
|
||||
+ public override bool Equals(object obj);
|
||||
+ public override int GetHashCode();
|
||||
+ public bool HasSameClassAndValue(Asn1Tag other);
|
||||
+ public static bool operator ==(Asn1Tag left, Asn1Tag right);
|
||||
+ public static bool operator !=(Asn1Tag left, Asn1Tag right);
|
||||
+ public override string ToString();
|
||||
+ public static bool TryDecode(ReadOnlySpan<byte> source, out Asn1Tag tag, out int bytesConsumed);
|
||||
+ public bool TryEncode(Span<byte> destination, out int bytesWritten);
|
||||
+ }
|
||||
+ public class AsnContentException : Exception {
|
||||
+ public AsnContentException();
|
||||
+ protected AsnContentException(SerializationInfo info, StreamingContext context);
|
||||
+ public AsnContentException(string message);
|
||||
+ public AsnContentException(string message, Exception inner);
|
||||
+ }
|
||||
+ public static class AsnDecoder {
|
||||
+ public static byte[] ReadBitString(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int unusedBitCount, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static bool ReadBoolean(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static string ReadCharacterString(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, UniversalTagNumber encodingType, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static Asn1Tag ReadEncodedValue(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int contentOffset, out int contentLength, out int bytesConsumed);
|
||||
+ public static ReadOnlySpan<byte> ReadEnumeratedBytes(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static Enum ReadEnumeratedValue(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, Type enumType, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static TEnum ReadEnumeratedValue<TEnum>(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?)) where TEnum : Enum;
|
||||
+ public static DateTimeOffset ReadGeneralizedTime(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static BigInteger ReadInteger(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static ReadOnlySpan<byte> ReadIntegerBytes(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static BitArray ReadNamedBitList(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static Enum ReadNamedBitListValue(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, Type flagsEnumType, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static TFlagsEnum ReadNamedBitListValue<TFlagsEnum>(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?)) where TFlagsEnum : Enum;
|
||||
+ public static void ReadNull(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static string ReadObjectIdentifier(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static byte[] ReadOctetString(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static void ReadSequence(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int contentOffset, out int contentLength, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static void ReadSetOf(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int contentOffset, out int contentLength, out int bytesConsumed, bool skipSortOrderValidation = false, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static DateTimeOffset ReadUtcTime(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int bytesConsumed, int twoDigitYearMax = 2049, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static bool TryReadBitString(ReadOnlySpan<byte> source, Span<byte> destination, AsnEncodingRules ruleSet, out int unusedBitCount, out int bytesConsumed, out int bytesWritten, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static bool TryReadCharacterString(ReadOnlySpan<byte> source, Span<char> destination, AsnEncodingRules ruleSet, UniversalTagNumber encodingType, out int bytesConsumed, out int charsWritten, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static bool TryReadCharacterStringBytes(ReadOnlySpan<byte> source, Span<byte> destination, AsnEncodingRules ruleSet, Asn1Tag expectedTag, out int bytesConsumed, out int bytesWritten);
|
||||
+ public static bool TryReadEncodedValue(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out Asn1Tag tag, out int contentOffset, out int contentLength, out int bytesConsumed);
|
||||
+ public static bool TryReadInt32(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int value, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static bool TryReadInt64(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out long value, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static bool TryReadOctetString(ReadOnlySpan<byte> source, Span<byte> destination, AsnEncodingRules ruleSet, out int bytesConsumed, out int bytesWritten, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static bool TryReadPrimitiveBitString(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int unusedBitCount, out ReadOnlySpan<byte> value, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static bool TryReadPrimitiveCharacterStringBytes(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, Asn1Tag expectedTag, out ReadOnlySpan<byte> value, out int bytesConsumed);
|
||||
+ public static bool TryReadPrimitiveOctetString(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out ReadOnlySpan<byte> value, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static bool TryReadUInt32(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out uint value, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public static bool TryReadUInt64(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out ulong value, out int bytesConsumed, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ }
|
||||
+ public enum AsnEncodingRules {
|
||||
+ BER = 0,
|
||||
+ CER = 1,
|
||||
+ DER = 2,
|
||||
+ }
|
||||
+ public class AsnReader {
|
||||
+ public AsnReader(ReadOnlyMemory<byte> data, AsnEncodingRules ruleSet, AsnReaderOptions options = default(AsnReaderOptions));
|
||||
+ public bool HasData { get; }
|
||||
+ public AsnEncodingRules RuleSet { get; }
|
||||
+ public ReadOnlyMemory<byte> PeekContentBytes();
|
||||
+ public ReadOnlyMemory<byte> PeekEncodedValue();
|
||||
+ public Asn1Tag PeekTag();
|
||||
+ public byte[] ReadBitString(out int unusedBitCount, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public bool ReadBoolean(Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public string ReadCharacterString(UniversalTagNumber encodingType, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public ReadOnlyMemory<byte> ReadEncodedValue();
|
||||
+ public ReadOnlyMemory<byte> ReadEnumeratedBytes(Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public Enum ReadEnumeratedValue(Type enumType, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public TEnum ReadEnumeratedValue<TEnum>(Asn1Tag? expectedTag = default(Asn1Tag?)) where TEnum : Enum;
|
||||
+ public DateTimeOffset ReadGeneralizedTime(Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public BigInteger ReadInteger(Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public ReadOnlyMemory<byte> ReadIntegerBytes(Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public BitArray ReadNamedBitList(Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public Enum ReadNamedBitListValue(Type flagsEnumType, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public TFlagsEnum ReadNamedBitListValue<TFlagsEnum>(Asn1Tag? expectedTag = default(Asn1Tag?)) where TFlagsEnum : Enum;
|
||||
+ public void ReadNull(Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public string ReadObjectIdentifier(Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public byte[] ReadOctetString(Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public AsnReader ReadSequence(Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public AsnReader ReadSetOf(bool skipSortOrderValidation, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public AsnReader ReadSetOf(Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public DateTimeOffset ReadUtcTime(int twoDigitYearMax, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public DateTimeOffset ReadUtcTime(Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public void ThrowIfNotEmpty();
|
||||
+ public bool TryReadBitString(Span<byte> destination, out int unusedBitCount, out int bytesWritten, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public bool TryReadCharacterString(Span<char> destination, UniversalTagNumber encodingType, out int charsWritten, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public bool TryReadCharacterStringBytes(Span<byte> destination, Asn1Tag expectedTag, out int bytesWritten);
|
||||
+ public bool TryReadInt32(out int value, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public bool TryReadInt64(out long value, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public bool TryReadOctetString(Span<byte> destination, out int bytesWritten, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public bool TryReadPrimitiveBitString(out int unusedBitCount, out ReadOnlyMemory<byte> value, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public bool TryReadPrimitiveCharacterStringBytes(Asn1Tag expectedTag, out ReadOnlyMemory<byte> contents);
|
||||
+ public bool TryReadPrimitiveOctetString(out ReadOnlyMemory<byte> contents, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public bool TryReadUInt32(out uint value, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ public bool TryReadUInt64(out ulong value, Asn1Tag? expectedTag = default(Asn1Tag?));
|
||||
+ }
|
||||
+ public struct AsnReaderOptions {
|
||||
+ public bool SkipSetSortOrderVerification { get; set; }
|
||||
+ public int UtcTimeTwoDigitYearMax { get; set; }
|
||||
+ }
|
||||
+ public sealed class AsnWriter {
|
||||
+ public AsnWriter(AsnEncodingRules ruleSet);
|
||||
+ public AsnEncodingRules RuleSet { get; }
|
||||
+ public void CopyTo(AsnWriter destination);
|
||||
+ public byte[] Encode();
|
||||
+ public int Encode(Span<byte> destination);
|
||||
+ public bool EncodedValueEquals(AsnWriter other);
|
||||
+ public bool EncodedValueEquals(ReadOnlySpan<byte> other);
|
||||
+ public int GetEncodedLength();
|
||||
+ public void PopOctetString(Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void PopSequence(Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void PopSetOf(Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public AsnWriter.Scope PushOctetString(Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public AsnWriter.Scope PushSequence(Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public AsnWriter.Scope PushSetOf(Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void Reset();
|
||||
+ public bool TryEncode(Span<byte> destination, out int bytesWritten);
|
||||
+ public void WriteBitString(ReadOnlySpan<byte> value, int unusedBitCount = 0, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteBoolean(bool value, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteCharacterString(UniversalTagNumber encodingType, ReadOnlySpan<char> str, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteCharacterString(UniversalTagNumber encodingType, string value, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteEncodedValue(ReadOnlySpan<byte> value);
|
||||
+ public void WriteEnumeratedValue(Enum value, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteEnumeratedValue<TEnum>(TEnum value, Asn1Tag? tag = default(Asn1Tag?)) where TEnum : Enum;
|
||||
+ public void WriteGeneralizedTime(DateTimeOffset value, bool omitFractionalSeconds = false, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteInteger(long value, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteInteger(BigInteger value, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteInteger(ReadOnlySpan<byte> value, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteInteger(ulong value, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteIntegerUnsigned(ReadOnlySpan<byte> value, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteNamedBitList(BitArray value, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteNamedBitList(Enum value, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteNamedBitList<TEnum>(TEnum value, Asn1Tag? tag = default(Asn1Tag?)) where TEnum : Enum;
|
||||
+ public void WriteNull(Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteObjectIdentifier(ReadOnlySpan<char> oidValue, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteObjectIdentifier(string oidValue, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteOctetString(ReadOnlySpan<byte> value, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteUtcTime(DateTimeOffset value, int twoDigitYearMax, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public void WriteUtcTime(DateTimeOffset value, Asn1Tag? tag = default(Asn1Tag?));
|
||||
+ public readonly struct Scope : IDisposable {
|
||||
+ public void Dispose();
|
||||
+ }
|
||||
+ }
|
||||
+ public enum TagClass {
|
||||
+ Application = 64,
|
||||
+ ContextSpecific = 128,
|
||||
+ Private = 192,
|
||||
+ Universal = 0,
|
||||
+ }
|
||||
+ public enum UniversalTagNumber {
|
||||
+ BitString = 3,
|
||||
+ BMPString = 30,
|
||||
+ Boolean = 1,
|
||||
+ Date = 31,
|
||||
+ DateTime = 33,
|
||||
+ Duration = 34,
|
||||
+ Embedded = 11,
|
||||
+ EndOfContents = 0,
|
||||
+ Enumerated = 10,
|
||||
+ External = 8,
|
||||
+ GeneralizedTime = 24,
|
||||
+ GeneralString = 27,
|
||||
+ GraphicString = 25,
|
||||
+ IA5String = 22,
|
||||
+ InstanceOf = 8,
|
||||
+ Integer = 2,
|
||||
+ ISO646String = 26,
|
||||
+ Null = 5,
|
||||
+ NumericString = 18,
|
||||
+ ObjectDescriptor = 7,
|
||||
+ ObjectIdentifier = 6,
|
||||
+ ObjectIdentifierIRI = 35,
|
||||
+ OctetString = 4,
|
||||
+ PrintableString = 19,
|
||||
+ Real = 9,
|
||||
+ RelativeObjectIdentifier = 13,
|
||||
+ RelativeObjectIdentifierIRI = 36,
|
||||
+ Sequence = 16,
|
||||
+ SequenceOf = 16,
|
||||
+ Set = 17,
|
||||
+ SetOf = 17,
|
||||
+ T61String = 20,
|
||||
+ TeletexString = 20,
|
||||
+ Time = 14,
|
||||
+ TimeOfDay = 32,
|
||||
+ UniversalString = 28,
|
||||
+ UnrestrictedCharacterString = 29,
|
||||
+ UtcTime = 23,
|
||||
+ UTF8String = 12,
|
||||
+ VideotexString = 21,
|
||||
+ VisibleString = 26,
|
||||
+ }
|
||||
+}
|
||||
```
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
# System.IO
|
||||
|
||||
``` diff
|
||||
namespace System.IO {
|
||||
public class MemoryStream : Stream {
|
||||
- public override void CopyTo(ReadOnlySpanAction<byte, object> callback, object state, int bufferSize);
|
||||
|
||||
- public override Task CopyToAsync(Func<ReadOnlyMemory<byte>, object, CancellationToken, ValueTask> callback, object state, int bufferSize, CancellationToken cancellationToken);
|
||||
|
||||
}
|
||||
public abstract class Stream : MarshalByRefObject, IAsyncDisposable, IDisposable {
|
||||
- public virtual void CopyTo(ReadOnlySpanAction<byte, object> callback, object state, int bufferSize);
|
||||
|
||||
- public virtual Task CopyToAsync(Func<ReadOnlyMemory<byte>, object, CancellationToken, ValueTask> callback, object state, int bufferSize, CancellationToken cancellationToken);
|
||||
|
||||
}
|
||||
public class UnmanagedMemoryStream : Stream {
|
||||
- public override void CopyTo(ReadOnlySpanAction<byte, object> callback, object state, int bufferSize);
|
||||
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# System.Net
|
||||
|
||||
``` diff
|
||||
namespace System.Net {
|
||||
public class WebHeaderCollection : NameValueCollection, IEnumerable, ISerializable {
|
||||
- public new string this[string name] { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# System.Runtime.CompilerServices
|
||||
|
||||
``` diff
|
||||
namespace System.Runtime.CompilerServices {
|
||||
+ public static class IsExternalInit
|
||||
+ public sealed class ModuleInitializerAttribute : Attribute {
|
||||
+ public ModuleInitializerAttribute();
|
||||
+ }
|
||||
}
|
||||
```
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
# System.Runtime.InteropServices
|
||||
|
||||
``` diff
|
||||
namespace System.Runtime.InteropServices {
|
||||
+ public sealed class DynamicInterfaceCastableImplementationAttribute : Attribute {
|
||||
+ public DynamicInterfaceCastableImplementationAttribute();
|
||||
+ }
|
||||
+ public interface IDynamicInterfaceCastable {
|
||||
+ RuntimeTypeHandle GetInterfaceImplementation(RuntimeTypeHandle interfaceType);
|
||||
+ bool IsInterfaceImplemented(RuntimeTypeHandle interfaceType, bool throwIfNotImplemented);
|
||||
+ }
|
||||
}
|
||||
```
|
||||
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,12 @@
|
|||
# System.Runtime.Intrinsics
|
||||
|
||||
``` diff
|
||||
namespace System.Runtime.Intrinsics {
|
||||
public static class Vector64 {
|
||||
+ public static Vector64<Double> CreateScalar(double value);
|
||||
+ public static Vector64<Int64> CreateScalar(long value);
|
||||
+ public static Vector64<UInt64> CreateScalar(ulong value);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
# System.Security.Cryptography.X509Certificates
|
||||
|
||||
``` diff
|
||||
namespace System.Security.Cryptography.X509Certificates {
|
||||
public sealed class X509ChainPolicy {
|
||||
+ public bool DisableCertificateDownloads { get; set; }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# System.Text
|
||||
|
||||
``` diff
|
||||
namespace System.Text {
|
||||
public sealed class CodePagesEncodingProvider : EncodingProvider {
|
||||
+ public override IEnumerable<EncodingInfo> GetEncodings();
|
||||
}
|
||||
public abstract class Encoding : ICloneable {
|
||||
+ public static Encoding Latin1 { get; }
|
||||
}
|
||||
public sealed class EncodingInfo {
|
||||
+ public EncodingInfo(EncodingProvider provider, int codePage, string name, string displayName);
|
||||
}
|
||||
public abstract class EncodingProvider {
|
||||
+ public virtual IEnumerable<EncodingInfo> GetEncodings();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
# System.Threading.Tasks
|
||||
|
||||
``` diff
|
||||
namespace System.Threading.Tasks {
|
||||
public class Task : IAsyncResult, IDisposable {
|
||||
+ public static Task<Task> WhenAny(Task task1, Task task2);
|
||||
+ public static Task<Task<TResult>> WhenAny<TResult>(Task<TResult> task1, Task<TResult> task2);
|
||||
}
|
||||
+ public class TaskCompletionSource {
|
||||
+ public TaskCompletionSource();
|
||||
+ public TaskCompletionSource(object state);
|
||||
+ public TaskCompletionSource(object state, TaskCreationOptions creationOptions);
|
||||
+ public TaskCompletionSource(TaskCreationOptions creationOptions);
|
||||
+ public Task Task { get; }
|
||||
+ public void SetCanceled();
|
||||
+ public void SetCanceled(CancellationToken cancellationToken);
|
||||
+ public void SetException(IEnumerable<Exception> exceptions);
|
||||
+ public void SetException(Exception exception);
|
||||
+ public void SetResult();
|
||||
+ public bool TrySetCanceled();
|
||||
+ public bool TrySetCanceled(CancellationToken cancellationToken);
|
||||
+ public bool TrySetException(IEnumerable<Exception> exceptions);
|
||||
+ public bool TrySetException(Exception exception);
|
||||
+ public bool TrySetResult();
|
||||
+ }
|
||||
public readonly struct ValueTask : IEquatable<ValueTask> {
|
||||
+ public static ValueTask CompletedTask { get; }
|
||||
+ public static ValueTask FromCanceled(CancellationToken cancellationToken);
|
||||
+ public static ValueTask<TResult> FromCanceled<TResult>(CancellationToken cancellationToken);
|
||||
+ public static ValueTask FromException(Exception exception);
|
||||
+ public static ValueTask<TResult> FromException<TResult>(Exception exception);
|
||||
+ public static ValueTask<TResult> FromResult<TResult>(TResult result);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -0,0 +1,92 @@
|
|||
# System
|
||||
|
||||
``` diff
|
||||
namespace System {
|
||||
public static class Console {
|
||||
+ public static (int Left, int Top) GetCursorPosition();
|
||||
}
|
||||
public static class GC {
|
||||
+ public static GCMemoryInfo GetGCMemoryInfo(GCKind kind);
|
||||
}
|
||||
+ public readonly struct GCGenerationInfo {
|
||||
+ public long FragmentationAfterBytes { get; }
|
||||
+ public long FragmentationBeforeBytes { get; }
|
||||
+ public long SizeAfterBytes { get; }
|
||||
+ public long SizeBeforeBytes { get; }
|
||||
+ }
|
||||
+ public enum GCKind {
|
||||
+ Any = 0,
|
||||
+ Background = 3,
|
||||
+ Ephemeral = 1,
|
||||
+ FullBlocking = 2,
|
||||
+ }
|
||||
public readonly struct GCMemoryInfo {
|
||||
+ public bool Compacted { get; }
|
||||
+ public bool Concurrent { get; }
|
||||
+ public long FinalizationPendingCount { get; }
|
||||
+ public int Generation { get; }
|
||||
+ public ReadOnlySpan<GCGenerationInfo> GenerationInfo { get; }
|
||||
+ public long Index { get; }
|
||||
+ public ReadOnlySpan<TimeSpan> PauseDurations { get; }
|
||||
+ public double PauseTimePercentage { get; }
|
||||
+ public long PinnedObjectsCount { get; }
|
||||
+ public long PromotedBytes { get; }
|
||||
+ public long TotalCommittedBytes { get; }
|
||||
}
|
||||
+ public readonly struct Half : IComparable, IComparable<Half>, IEquatable<Half>, IFormattable {
|
||||
+ public static Half Epsilon { get; }
|
||||
+ public static Half MaxValue { get; }
|
||||
+ public static Half MinValue { get; }
|
||||
+ public static Half NaN { get; }
|
||||
+ public static Half NegativeInfinity { get; }
|
||||
+ public static Half PositiveInfinity { get; }
|
||||
+ public int CompareTo(Half other);
|
||||
+ public int CompareTo(object obj);
|
||||
+ public bool Equals(Half other);
|
||||
+ public override bool Equals(object obj);
|
||||
+ public override int GetHashCode();
|
||||
+ public static bool IsFinite(Half value);
|
||||
+ public static bool IsInfinity(Half value);
|
||||
+ public static bool IsNaN(Half value);
|
||||
+ public static bool IsNegative(Half value);
|
||||
+ public static bool IsNegativeInfinity(Half value);
|
||||
+ public static bool IsNormal(Half value);
|
||||
+ public static bool IsPositiveInfinity(Half value);
|
||||
+ public static bool IsSubnormal(Half value);
|
||||
+ public static bool operator ==(Half left, Half right);
|
||||
+ public static explicit operator Half (double value);
|
||||
+ public static explicit operator double (Half value);
|
||||
+ public static explicit operator float (Half value);
|
||||
+ public static explicit operator Half (float value);
|
||||
+ public static bool operator >(Half left, Half right);
|
||||
+ public static bool operator >=(Half left, Half right);
|
||||
+ public static bool operator !=(Half left, Half right);
|
||||
+ public static bool operator <(Half left, Half right);
|
||||
+ public static bool operator <=(Half left, Half right);
|
||||
+ public static Half Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent | NumberStyles.AllowLeadingSign | NumberStyles.AllowLeadingWhite | NumberStyles.AllowThousands | NumberStyles.AllowTrailingWhite, IFormatProvider provider = null);
|
||||
+ public static Half Parse(string s);
|
||||
+ public static Half Parse(string s, NumberStyles style);
|
||||
+ public static Half Parse(string s, NumberStyles style = NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent | NumberStyles.AllowLeadingSign | NumberStyles.AllowLeadingWhite | NumberStyles.AllowThousands | NumberStyles.AllowTrailingWhite, IFormatProvider provider = null);
|
||||
+ public static Half Parse(string s, IFormatProvider provider);
|
||||
+ public override string ToString();
|
||||
+ public string ToString(IFormatProvider provider);
|
||||
+ public string ToString(string format);
|
||||
+ public string ToString(string format, IFormatProvider provider);
|
||||
+ public bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default(ReadOnlySpan<char>), IFormatProvider provider = null);
|
||||
+ public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider provider, out Half result);
|
||||
+ public static bool TryParse(ReadOnlySpan<char> s, out Half result);
|
||||
+ public static bool TryParse(string s, NumberStyles style, IFormatProvider provider, out Half result);
|
||||
+ public static bool TryParse(string s, out Half result);
|
||||
+ }
|
||||
public static class Math {
|
||||
+ public const double Tau = 6.2831853071795862;
|
||||
}
|
||||
public static class MathF {
|
||||
+ public const float Tau = 6.28318548f;
|
||||
}
|
||||
public enum StringSplitOptions {
|
||||
+ TrimEntries = 2,
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
# API Difference aspnet5.0-preview6 vs aspnet5.0-preview7
|
||||
|
||||
API listing follows standard diff formatting. Lines preceded by a '+' are
|
||||
additions and a '-' indicates removal.
|
||||
|
||||
* [Microsoft.AspNetCore.Authentication](5.0-preview7_Microsoft.AspNetCore.Authentication.md)
|
||||
* [Microsoft.AspNetCore.Mvc](5.0-preview7_Microsoft.AspNetCore.Mvc.md)
|
||||
* [Microsoft.AspNetCore.Mvc.ApiExplorer](5.0-preview7_Microsoft.AspNetCore.Mvc.ApiExplorer.md)
|
||||
* [Microsoft.AspNetCore.Mvc.ModelBinding](5.0-preview7_Microsoft.AspNetCore.Mvc.ModelBinding.md)
|
||||
* [Microsoft.AspNetCore.Mvc.ModelBinding.Validation](5.0-preview7_Microsoft.AspNetCore.Mvc.ModelBinding.Validation.md)
|
||||
* [Microsoft.AspNetCore.Server.Kestrel.Core](5.0-preview7_Microsoft.AspNetCore.Server.Kestrel.Core.md)
|
||||
* [Microsoft.Extensions.Localization](5.0-preview7_Microsoft.Extensions.Localization.md)
|
||||
* [Microsoft.Extensions.Localization.Internal](5.0-preview7_Microsoft.Extensions.Localization.Internal.md)
|
||||
* [Microsoft.Net.Http.Headers](5.0-preview7_Microsoft.Net.Http.Headers.md)
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# Microsoft.AspNetCore.Authentication
|
||||
|
||||
``` diff
|
||||
namespace Microsoft.AspNetCore.Authentication {
|
||||
public class AuthenticateResult {
|
||||
+ public AuthenticateResult Clone();
|
||||
}
|
||||
public class AuthenticationProperties {
|
||||
+ public AuthenticationProperties Clone();
|
||||
}
|
||||
public class AuthenticationTicket {
|
||||
+ public AuthenticationTicket Clone();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
# Microsoft.AspNetCore.Mvc.ApiExplorer
|
||||
|
||||
``` diff
|
||||
namespace Microsoft.AspNetCore.Mvc.ApiExplorer {
|
||||
public class ApiParameterDescription {
|
||||
+ public BindingInfo BindingInfo { get; set; }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
# Microsoft.AspNetCore.Mvc.ModelBinding.Validation
|
||||
|
||||
``` diff
|
||||
namespace Microsoft.AspNetCore.Mvc.ModelBinding.Validation {
|
||||
public class ValidationVisitor {
|
||||
+ public virtual bool Validate(ModelMetadata metadata, string key, object model, bool alwaysValidateAtTopLevel, object container);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
# Microsoft.AspNetCore.Mvc.ModelBinding
|
||||
|
||||
``` diff
|
||||
namespace Microsoft.AspNetCore.Mvc.ModelBinding {
|
||||
public class BindingInfo {
|
||||
+ public EmptyBodyBehavior EmptyBodyBehavior { get; set; }
|
||||
}
|
||||
+ public enum EmptyBodyBehavior {
|
||||
+ Allow = 1,
|
||||
+ Default = 0,
|
||||
+ Disallow = 2,
|
||||
+ }
|
||||
public abstract class ObjectModelValidator : IObjectModelValidator {
|
||||
+ public virtual void Validate(ActionContext actionContext, ValidationStateDictionary validationState, string prefix, object model, ModelMetadata metadata, object container);
|
||||
}
|
||||
public class ParameterBinder {
|
||||
+ public virtual ValueTask<ModelBindingResult> BindModelAsync(ActionContext actionContext, IModelBinder modelBinder, IValueProvider valueProvider, ParameterDescriptor parameter, ModelMetadata metadata, object value, object container);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
# Microsoft.AspNetCore.Mvc
|
||||
|
||||
``` diff
|
||||
namespace Microsoft.AspNetCore.Mvc {
|
||||
public class FromBodyAttribute : Attribute, IBindingSourceMetadata {
|
||||
+ public EmptyBodyBehavior EmptyBodyBehavior { get; set; }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
# Microsoft.AspNetCore.Server.Kestrel.Core
|
||||
|
||||
``` diff
|
||||
namespace Microsoft.AspNetCore.Server.Kestrel.Core {
|
||||
public class Http2Limits {
|
||||
+ public TimeSpan KeepAlivePingInterval { get; set; }
|
||||
+ public TimeSpan KeepAlivePingTimeout { get; set; }
|
||||
}
|
||||
public class KestrelServerOptions {
|
||||
+ public Func<string, Encoding> RequestHeaderEncodingSelector { get; set; }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
# Microsoft.Extensions.Localization.Internal
|
||||
|
||||
``` diff
|
||||
-namespace Microsoft.Extensions.Localization.Internal {
|
||||
{
|
||||
- public class AssemblyWrapper {
|
||||
{
|
||||
- public AssemblyWrapper(Assembly assembly);
|
||||
|
||||
- public Assembly Assembly { get; }
|
||||
|
||||
- public virtual string FullName { get; }
|
||||
|
||||
- public virtual Stream GetManifestResourceStream(string name);
|
||||
|
||||
- }
|
||||
- public interface IResourceStringProvider {
|
||||
{
|
||||
- IList<string> GetAllResourceStrings(CultureInfo culture, bool throwOnMissing);
|
||||
|
||||
- }
|
||||
- public class ResourceManagerStringProvider : IResourceStringProvider {
|
||||
{
|
||||
- public ResourceManagerStringProvider(IResourceNamesCache resourceCache, ResourceManager resourceManager, Assembly assembly, string baseName);
|
||||
|
||||
- public IList<string> GetAllResourceStrings(CultureInfo culture, bool throwOnMissing);
|
||||
|
||||
- }
|
||||
-}
|
||||
```
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
# Microsoft.Extensions.Localization
|
||||
|
||||
``` diff
|
||||
namespace Microsoft.Extensions.Localization {
|
||||
public class ResourceManagerStringLocalizer : IStringLocalizer {
|
||||
- public ResourceManagerStringLocalizer(ResourceManager resourceManager, AssemblyWrapper resourceAssemblyWrapper, string baseName, IResourceNamesCache resourceNamesCache, ILogger logger);
|
||||
|
||||
- public ResourceManagerStringLocalizer(ResourceManager resourceManager, IResourceStringProvider resourceStringProvider, string baseName, IResourceNamesCache resourceNamesCache, ILogger logger);
|
||||
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
# Microsoft.Net.Http.Headers
|
||||
|
||||
``` diff
|
||||
namespace Microsoft.Net.Http.Headers {
|
||||
public class SetCookieHeaderValue {
|
||||
+ public IList<StringSegment> Extensions { get; }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
6
release-notes/5.0/preview/api-diff/preview7/README.md
Normal file
6
release-notes/5.0/preview/api-diff/preview7/README.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
# .NET 5.0 Preview 7 API Changes
|
||||
|
||||
The following API changes were made in .NET 5.0 Preview 7:
|
||||
|
||||
- [.NET](./.Net/5.0-preview7.md)
|
||||
- [ASP.NET](./Asp.Net/5.0-preview7.md)
|
Loading…
Reference in a new issue