diff options
author | monojenkins <jo.shields+jenkins@xamarin.com> | 2019-06-05 22:46:13 +0300 |
---|---|---|
committer | monojenkins <jo.shields+jenkins@xamarin.com> | 2019-06-05 22:46:13 +0300 |
commit | b406a525281fb60622095a7a8e0b5235d3c3bb55 (patch) | |
tree | 17a658e0db81c325b85e70edd29a83263a94f05d | |
parent | 56249f9f34c6783d82f871cc3954773cc06e0d05 (diff) |
Apply changes from https://github.com/mono/mono/pull/14822 to API snapshot
-rw-r--r-- | profiles/monodroid/Facades/netstandard.cs | 4 | ||||
-rw-r--r-- | profiles/monodroid/System.Core.cs | 9 | ||||
-rw-r--r-- | profiles/monodroid/System.cs | 2 | ||||
-rw-r--r-- | profiles/monodroid/mscorlib.cs | 73 | ||||
-rw-r--r-- | profiles/monotouch/Facades/netstandard.cs | 4 | ||||
-rw-r--r-- | profiles/monotouch/System.Core.cs | 9 | ||||
-rw-r--r-- | profiles/monotouch/System.cs | 2 | ||||
-rw-r--r-- | profiles/monotouch/mscorlib.cs | 80 | ||||
-rw-r--r-- | profiles/net_4_x/Facades/netstandard.cs | 4 | ||||
-rw-r--r-- | profiles/net_4_x/System.Core.cs | 9 | ||||
-rw-r--r-- | profiles/net_4_x/System.cs | 2 | ||||
-rw-r--r-- | profiles/net_4_x/mscorlib.cs | 73 |
12 files changed, 178 insertions, 93 deletions
diff --git a/profiles/monodroid/Facades/netstandard.cs b/profiles/monodroid/Facades/netstandard.cs index 80eefec..f435448 100644 --- a/profiles/monodroid/Facades/netstandard.cs +++ b/profiles/monodroid/Facades/netstandard.cs @@ -1522,6 +1522,7 @@ [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.DisablePrivateReflectionAttribute))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.DiscardableAttribute))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.DynamicAttribute))] +[assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.EnumeratorCancellationAttribute))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.ExtensionAttribute))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.FixedAddressValueTypeAttribute))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.FixedBufferAttribute))] @@ -1891,6 +1892,8 @@ [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.OidGroup))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.PaddingMode))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.PasswordDeriveBytes))] +[assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.PbeEncryptionAlgorithm))] +[assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.PbeParameters))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.PKCS1MaskGenerationMethod))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.RandomNumberGenerator))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.RC2))] @@ -2104,6 +2107,7 @@ [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.Sources.ValueTaskSourceStatus))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.Task))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.Task<>))] +[assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskAsyncEnumerableExtensions))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskCanceledException))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskCompletionSource<>))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskContinuationOptions))] diff --git a/profiles/monodroid/System.Core.cs b/profiles/monodroid/System.Core.cs index afb4837..d3f38c5 100644 --- a/profiles/monodroid/System.Core.cs +++ b/profiles/monodroid/System.Core.cs @@ -2864,10 +2864,13 @@ namespace System.Security.Cryptography public virtual byte[] DeriveKeyFromHmac(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, byte[] hmacKey, byte[] secretPrepend, byte[] secretAppend) { throw null; } public virtual byte[] DeriveKeyMaterial(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey) { throw null; } public virtual byte[] DeriveKeyTls(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey, byte[] prfLabel, byte[] prfSeed) { throw null; } + public virtual byte[] ExportECPrivateKey() { throw null; } public virtual System.Security.Cryptography.ECParameters ExportExplicitParameters(bool includePrivateParameters) { throw null; } public virtual System.Security.Cryptography.ECParameters ExportParameters(bool includePrivateParameters) { throw null; } public virtual void GenerateKey(System.Security.Cryptography.ECCurve curve) { } + public virtual void ImportECPrivateKey(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } public virtual void ImportParameters(System.Security.Cryptography.ECParameters parameters) { } + public virtual bool TryExportECPrivateKey(System.Span<byte> destination, out int bytesWritten) { throw null; } } [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, MayLeakOnAbort=true)] [System.SerializableAttribute] @@ -2892,16 +2895,19 @@ namespace System.Security.Cryptography public static System.Security.Cryptography.ECDsa Create(System.Security.Cryptography.ECCurve curve) { throw null; } public static System.Security.Cryptography.ECDsa Create(System.Security.Cryptography.ECParameters parameters) { throw null; } public static new System.Security.Cryptography.ECDsa Create(string algorithm) { throw null; } + public virtual byte[] ExportECPrivateKey() { throw null; } public virtual System.Security.Cryptography.ECParameters ExportExplicitParameters(bool includePrivateParameters) { throw null; } public virtual System.Security.Cryptography.ECParameters ExportParameters(bool includePrivateParameters) { throw null; } public virtual void GenerateKey(System.Security.Cryptography.ECCurve curve) { } protected virtual byte[] HashData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } protected virtual byte[] HashData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } + public virtual void ImportECPrivateKey(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } public virtual void ImportParameters(System.Security.Cryptography.ECParameters parameters) { } public virtual byte[] SignData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public virtual byte[] SignData(byte[] data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public virtual byte[] SignData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public abstract byte[] SignHash(byte[] hash); + public virtual bool TryExportECPrivateKey(System.Span<byte> destination, out int bytesWritten) { throw null; } protected virtual bool TryHashData(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, out int bytesWritten) { throw null; } public virtual bool TrySignData(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, out int bytesWritten) { throw null; } public virtual bool TrySignHash(System.ReadOnlySpan<byte> hash, System.Span<byte> destination, out int bytesWritten) { throw null; } @@ -3103,10 +3109,7 @@ namespace System.Threading.Tasks { public static partial class TaskExtensions { - public static System.Runtime.CompilerServices.ConfiguredAsyncDisposable ConfigureAwait(this System.IAsyncDisposable source, bool continueOnCapturedContext) { throw null; } - public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, bool continueOnCapturedContext) { throw null; } public static System.Threading.Tasks.Task Unwrap(this System.Threading.Tasks.Task<System.Threading.Tasks.Task> task) { throw null; } public static System.Threading.Tasks.Task<TResult> Unwrap<TResult>(this System.Threading.Tasks.Task<System.Threading.Tasks.Task<TResult>> task) { throw null; } - public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> WithCancellation<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, System.Threading.CancellationToken cancellationToken) { throw null; } } } diff --git a/profiles/monodroid/System.cs b/profiles/monodroid/System.cs index 39bee98..40bcb69 100644 --- a/profiles/monodroid/System.cs +++ b/profiles/monodroid/System.cs @@ -1209,7 +1209,7 @@ namespace System.ComponentModel } public abstract partial class BaseNumberConverter : System.ComponentModel.TypeConverter { - protected BaseNumberConverter() { } + internal BaseNumberConverter() { } public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext context, System.Type sourceType) { throw null; } public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext context, System.Type destinationType) { throw null; } public override object ConvertFrom(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) { throw null; } diff --git a/profiles/monodroid/mscorlib.cs b/profiles/monodroid/mscorlib.cs index 14a8e95..77bbbfa 100644 --- a/profiles/monodroid/mscorlib.cs +++ b/profiles/monodroid/mscorlib.cs @@ -3611,7 +3611,6 @@ namespace System [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public Memory(T[] array, int start, int length) { throw null; } public static System.Memory<T> Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } - public System.Memory<T> this[System.Range range] { get { throw null; } } public int Length { get { throw null; } } public System.Span<T> Span { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } public void CopyTo(System.Memory<T> destination) { } @@ -3622,10 +3621,8 @@ namespace System public static implicit operator System.ReadOnlyMemory<T> (System.Memory<T> memory) { throw null; } public static implicit operator System.Memory<T> (T[] array) { throw null; } public System.Buffers.MemoryHandle Pin() { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Memory<T> Slice(System.Index startIndex) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Memory<T> Slice(int start) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Memory<T> Slice(int start, int length) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Memory<T> Slice(System.Range range) { throw null; } public T[] ToArray() { throw null; } public override string ToString() { throw null; } public bool TryCopyTo(System.Memory<T> destination) { throw null; } @@ -3998,7 +3995,6 @@ namespace System [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ReadOnlyMemory(T[] array, int start, int length) { throw null; } public static System.ReadOnlyMemory<T> Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } - public System.ReadOnlyMemory<T> this[System.Range range] { get { throw null; } } public int Length { get { throw null; } } public System.ReadOnlySpan<T> Span { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } public void CopyTo(System.Memory<T> destination) { } @@ -4008,10 +4004,8 @@ namespace System public static implicit operator System.ReadOnlyMemory<T> (System.ArraySegment<T> segment) { throw null; } public static implicit operator System.ReadOnlyMemory<T> (T[] array) { throw null; } public System.Buffers.MemoryHandle Pin() { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlyMemory<T> Slice(System.Index startIndex) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlyMemory<T> Slice(int start) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlyMemory<T> Slice(int start, int length) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlyMemory<T> Slice(System.Range range) { throw null; } public T[] ToArray() { throw null; } public override string ToString() { throw null; } public bool TryCopyTo(System.Memory<T> destination) { throw null; } @@ -4029,9 +4023,7 @@ namespace System [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ReadOnlySpan(T[] array, int start, int length) { throw null; } public static System.ReadOnlySpan<T> Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } - public ref readonly T this[System.Index index] { get { throw null; } } public ref readonly T this[int index] { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } - public System.ReadOnlySpan<T> this[System.Range range] { get { throw null; } } public int Length { get { throw null; } } public void CopyTo(System.Span<T> destination) { } [System.ObsoleteAttribute("Equals() on ReadOnlySpan will always throw an exception. Use == instead.")] @@ -4044,10 +4036,8 @@ namespace System public static implicit operator System.ReadOnlySpan<T> (System.ArraySegment<T> segment) { throw null; } public static implicit operator System.ReadOnlySpan<T> (T[] array) { throw null; } public static bool operator !=(System.ReadOnlySpan<T> left, System.ReadOnlySpan<T> right) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(System.Index startIndex) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(int start) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(int start, int length) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(System.Range range) { throw null; } public T[] ToArray() { throw null; } public override string ToString() { throw null; } public bool TryCopyTo(System.Span<T> destination) { throw null; } @@ -4271,9 +4261,7 @@ namespace System [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public Span(T[] array, int start, int length) { throw null; } public static System.Span<T> Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } - public ref T this[System.Index index] { get { throw null; } } public ref T this[int index] { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } - public System.Span<T> this[System.Range range] { get { throw null; } } public int Length { get { throw null; } } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public void Clear() { } public void CopyTo(System.Span<T> destination) { } @@ -4289,10 +4277,8 @@ namespace System public static implicit operator System.ReadOnlySpan<T> (System.Span<T> span) { throw null; } public static implicit operator System.Span<T> (T[] array) { throw null; } public static bool operator !=(System.Span<T> left, System.Span<T> right) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(System.Index startIndex) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(int start) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(int start, int length) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(System.Range range) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public T[] ToArray() { throw null; } public override string ToString() { throw null; } public bool TryCopyTo(System.Span<T> destination) { throw null; } @@ -4336,11 +4322,7 @@ namespace System [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)][System.CLSCompliantAttribute(false)] public unsafe String(sbyte* value, int startIndex, int length, System.Text.Encoding enc) { } [System.Runtime.CompilerServices.IndexerName("Chars")] - public char this[System.Index index] { get { throw null; } } - [System.Runtime.CompilerServices.IndexerName("Chars")] public char this[int index] { get { throw null; } } - [System.Runtime.CompilerServices.IndexerName("Chars")] - public string this[System.Range range] { get { throw null; } } public int Length { get { throw null; } } public object Clone() { throw null; } public static int Compare(System.String strA, int indexA, System.String strB, int indexB, int length) { throw null; } @@ -4467,10 +4449,8 @@ namespace System public bool StartsWith(System.String value) { throw null; } public bool StartsWith(System.String value, bool ignoreCase, System.Globalization.CultureInfo culture) { throw null; } public bool StartsWith(System.String value, System.StringComparison comparisonType) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.String Substring(System.Index startIndex) { throw null; } public System.String Substring(int startIndex) { throw null; } public System.String Substring(int startIndex, int length) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.String Substring(System.Range range) { throw null; } System.Collections.Generic.IEnumerator<char> System.Collections.Generic.IEnumerable<System.Char>.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } bool System.IConvertible.ToBoolean(System.IFormatProvider provider) { throw null; } @@ -7133,7 +7113,6 @@ namespace System.Collections.ObjectModel bool System.Collections.IList.IsReadOnly { get { throw null; } } object System.Collections.IList.this[int index] { get { throw null; } set { } } public void Add(T item) { } - public void AddRange(System.Collections.Generic.IEnumerable<T> collection) { } public void Clear() { } protected virtual void ClearItems() { } public bool Contains(T item) { throw null; } @@ -7142,15 +7121,9 @@ namespace System.Collections.ObjectModel public int IndexOf(T item) { throw null; } public void Insert(int index, T item) { } protected virtual void InsertItem(int index, T item) { } - protected virtual void InsertItemsRange(int index, System.Collections.Generic.IEnumerable<T> collection) { } - public void InsertRange(int index, System.Collections.Generic.IEnumerable<T> collection) { } public bool Remove(T item) { throw null; } public void RemoveAt(int index) { } protected virtual void RemoveItem(int index) { } - protected virtual void RemoveItemsRange(int index, int count) { } - public void RemoveRange(int index, int count) { } - protected virtual void ReplaceItemsRange(int index, int count, System.Collections.Generic.IEnumerable<T> collection) { } - public void ReplaceRange(int index, int count, System.Collections.Generic.IEnumerable<T> collection) { } protected virtual void SetItem(int index, T item) { } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } @@ -13796,6 +13769,11 @@ namespace System.Runtime.CompilerServices { public DiscardableAttribute() { } } + [System.AttributeUsageAttribute(System.AttributeTargets.Parameter, Inherited=false)] + public sealed partial class EnumeratorCancellationAttribute : System.Attribute + { + public EnumeratorCancellationAttribute() { } + } [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method)] public sealed partial class ExtensionAttribute : System.Attribute { @@ -21088,8 +21066,20 @@ namespace System.Security.Cryptography public static System.Security.Cryptography.AsymmetricAlgorithm Create(string algName) { throw null; } public void Dispose() { } protected virtual void Dispose(bool disposing) { } + public virtual byte[] ExportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<byte> passwordBytes, System.Security.Cryptography.PbeParameters pbeParameters) { throw null; } + public virtual byte[] ExportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<char> password, System.Security.Cryptography.PbeParameters pbeParameters) { throw null; } + public virtual byte[] ExportPkcs8PrivateKey() { throw null; } + public virtual byte[] ExportSubjectPublicKeyInfo() { throw null; } public virtual void FromXmlString(string xmlString) { } + public virtual void ImportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<byte> passwordBytes, System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } + public virtual void ImportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<char> password, System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } + public virtual void ImportPkcs8PrivateKey(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } + public virtual void ImportSubjectPublicKeyInfo(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } public virtual string ToXmlString(bool includePrivateParameters) { throw null; } + public virtual bool TryExportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<byte> passwordBytes, System.Security.Cryptography.PbeParameters pbeParameters, System.Span<byte> destination, out int bytesWritten) { throw null; } + public virtual bool TryExportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<char> password, System.Security.Cryptography.PbeParameters pbeParameters, System.Span<byte> destination, out int bytesWritten) { throw null; } + public virtual bool TryExportPkcs8PrivateKey(System.Span<byte> destination, out int bytesWritten) { throw null; } + public virtual bool TryExportSubjectPublicKeyInfo(System.Span<byte> destination, out int bytesWritten) { throw null; } } [System.Runtime.InteropServices.ComVisibleAttribute(true)] public abstract partial class AsymmetricKeyExchangeDeformatter @@ -21638,6 +21628,21 @@ namespace System.Security.Cryptography public override byte[] GetBytes(int cb) { throw null; } public override void Reset() { } } + public enum PbeEncryptionAlgorithm + { + Aes128Cbc = 1, + Aes192Cbc = 2, + Aes256Cbc = 3, + TripleDes3KeyPkcs12 = 4, + Unknown = 0, + } + public sealed partial class PbeParameters + { + public PbeParameters(System.Security.Cryptography.PbeEncryptionAlgorithm encryptionAlgorithm, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, int iterationCount) { } + public System.Security.Cryptography.PbeEncryptionAlgorithm EncryptionAlgorithm { get { throw null; } } + public System.Security.Cryptography.HashAlgorithmName HashAlgorithm { get { throw null; } } + public int IterationCount { get { throw null; } } + } [System.Runtime.InteropServices.ComVisibleAttribute(true)] public partial class PKCS1MaskGenerationMethod : System.Security.Cryptography.MaskGenerationMethod { @@ -21657,6 +21662,8 @@ namespace System.Security.Cryptography public abstract void GetBytes(byte[] data); public virtual void GetBytes(byte[] data, int offset, int count) { } public virtual void GetBytes(System.Span<byte> data) { } + public static int GetInt32(int toExclusive) { throw null; } + public static int GetInt32(int fromInclusive, int toExclusive) { throw null; } public virtual void GetNonZeroBytes(byte[] data) { } public virtual void GetNonZeroBytes(System.Span<byte> data) { } } @@ -21777,10 +21784,14 @@ namespace System.Security.Cryptography public virtual byte[] Encrypt(byte[] data, System.Security.Cryptography.RSAEncryptionPadding padding) { throw null; } public virtual byte[] EncryptValue(byte[] rgb) { throw null; } public abstract System.Security.Cryptography.RSAParameters ExportParameters(bool includePrivateParameters); + public virtual byte[] ExportRSAPrivateKey() { throw null; } + public virtual byte[] ExportRSAPublicKey() { throw null; } public override void FromXmlString(string xmlString) { } protected virtual byte[] HashData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } protected virtual byte[] HashData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public abstract void ImportParameters(System.Security.Cryptography.RSAParameters parameters); + public virtual void ImportRSAPrivateKey(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } + public virtual void ImportRSAPublicKey(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } public virtual byte[] SignData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding) { throw null; } public byte[] SignData(byte[] data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding) { throw null; } public virtual byte[] SignData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding) { throw null; } @@ -21788,6 +21799,8 @@ namespace System.Security.Cryptography public override string ToXmlString(bool includePrivateParameters) { throw null; } public virtual bool TryDecrypt(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.RSAEncryptionPadding padding, out int bytesWritten) { throw null; } public virtual bool TryEncrypt(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.RSAEncryptionPadding padding, out int bytesWritten) { throw null; } + public virtual bool TryExportRSAPrivateKey(System.Span<byte> destination, out int bytesWritten) { throw null; } + public virtual bool TryExportRSAPublicKey(System.Span<byte> destination, out int bytesWritten) { throw null; } protected virtual bool TryHashData(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, out int bytesWritten) { throw null; } public virtual bool TrySignData(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding, out int bytesWritten) { throw null; } public virtual bool TrySignHash(System.ReadOnlySpan<byte> hash, System.Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding, out int bytesWritten) { throw null; } @@ -25605,6 +25618,12 @@ namespace System.Threading.Tasks public static System.Threading.Tasks.Task<System.Threading.Tasks.Task<TResult>> WhenAny<TResult>(params System.Threading.Tasks.Task<TResult>[] tasks) { throw null; } public static System.Runtime.CompilerServices.YieldAwaitable Yield() { throw null; } } + public static partial class TaskAsyncEnumerableExtensions + { + public static System.Runtime.CompilerServices.ConfiguredAsyncDisposable ConfigureAwait(this System.IAsyncDisposable source, bool continueOnCapturedContext) { throw null; } + public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, bool continueOnCapturedContext) { throw null; } + public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> WithCancellation<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, System.Threading.CancellationToken cancellationToken) { throw null; } + } [System.SerializableAttribute] public partial class TaskCanceledException : System.OperationCanceledException { diff --git a/profiles/monotouch/Facades/netstandard.cs b/profiles/monotouch/Facades/netstandard.cs index 80eefec..f435448 100644 --- a/profiles/monotouch/Facades/netstandard.cs +++ b/profiles/monotouch/Facades/netstandard.cs @@ -1522,6 +1522,7 @@ [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.DisablePrivateReflectionAttribute))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.DiscardableAttribute))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.DynamicAttribute))] +[assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.EnumeratorCancellationAttribute))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.ExtensionAttribute))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.FixedAddressValueTypeAttribute))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.FixedBufferAttribute))] @@ -1891,6 +1892,8 @@ [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.OidGroup))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.PaddingMode))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.PasswordDeriveBytes))] +[assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.PbeEncryptionAlgorithm))] +[assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.PbeParameters))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.PKCS1MaskGenerationMethod))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.RandomNumberGenerator))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.RC2))] @@ -2104,6 +2107,7 @@ [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.Sources.ValueTaskSourceStatus))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.Task))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.Task<>))] +[assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskAsyncEnumerableExtensions))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskCanceledException))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskCompletionSource<>))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskContinuationOptions))] diff --git a/profiles/monotouch/System.Core.cs b/profiles/monotouch/System.Core.cs index cd9660a..a2903c6 100644 --- a/profiles/monotouch/System.Core.cs +++ b/profiles/monotouch/System.Core.cs @@ -2837,10 +2837,13 @@ namespace System.Security.Cryptography public virtual byte[] DeriveKeyFromHmac(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, byte[] hmacKey, byte[] secretPrepend, byte[] secretAppend) { throw null; } public virtual byte[] DeriveKeyMaterial(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey) { throw null; } public virtual byte[] DeriveKeyTls(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey, byte[] prfLabel, byte[] prfSeed) { throw null; } + public virtual byte[] ExportECPrivateKey() { throw null; } public virtual System.Security.Cryptography.ECParameters ExportExplicitParameters(bool includePrivateParameters) { throw null; } public virtual System.Security.Cryptography.ECParameters ExportParameters(bool includePrivateParameters) { throw null; } public virtual void GenerateKey(System.Security.Cryptography.ECCurve curve) { } + public virtual void ImportECPrivateKey(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } public virtual void ImportParameters(System.Security.Cryptography.ECParameters parameters) { } + public virtual bool TryExportECPrivateKey(System.Span<byte> destination, out int bytesWritten) { throw null; } } [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, MayLeakOnAbort=true)] [System.SerializableAttribute] @@ -2865,16 +2868,19 @@ namespace System.Security.Cryptography public static System.Security.Cryptography.ECDsa Create(System.Security.Cryptography.ECCurve curve) { throw null; } public static System.Security.Cryptography.ECDsa Create(System.Security.Cryptography.ECParameters parameters) { throw null; } public static new System.Security.Cryptography.ECDsa Create(string algorithm) { throw null; } + public virtual byte[] ExportECPrivateKey() { throw null; } public virtual System.Security.Cryptography.ECParameters ExportExplicitParameters(bool includePrivateParameters) { throw null; } public virtual System.Security.Cryptography.ECParameters ExportParameters(bool includePrivateParameters) { throw null; } public virtual void GenerateKey(System.Security.Cryptography.ECCurve curve) { } protected virtual byte[] HashData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } protected virtual byte[] HashData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } + public virtual void ImportECPrivateKey(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } public virtual void ImportParameters(System.Security.Cryptography.ECParameters parameters) { } public virtual byte[] SignData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public virtual byte[] SignData(byte[] data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public virtual byte[] SignData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public abstract byte[] SignHash(byte[] hash); + public virtual bool TryExportECPrivateKey(System.Span<byte> destination, out int bytesWritten) { throw null; } protected virtual bool TryHashData(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, out int bytesWritten) { throw null; } public virtual bool TrySignData(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, out int bytesWritten) { throw null; } public virtual bool TrySignHash(System.ReadOnlySpan<byte> hash, System.Span<byte> destination, out int bytesWritten) { throw null; } @@ -3076,10 +3082,7 @@ namespace System.Threading.Tasks { public static partial class TaskExtensions { - public static System.Runtime.CompilerServices.ConfiguredAsyncDisposable ConfigureAwait(this System.IAsyncDisposable source, bool continueOnCapturedContext) { throw null; } - public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, bool continueOnCapturedContext) { throw null; } public static System.Threading.Tasks.Task Unwrap(this System.Threading.Tasks.Task<System.Threading.Tasks.Task> task) { throw null; } public static System.Threading.Tasks.Task<TResult> Unwrap<TResult>(this System.Threading.Tasks.Task<System.Threading.Tasks.Task<TResult>> task) { throw null; } - public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> WithCancellation<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, System.Threading.CancellationToken cancellationToken) { throw null; } } } diff --git a/profiles/monotouch/System.cs b/profiles/monotouch/System.cs index 1cc25cb..3ac2ec8 100644 --- a/profiles/monotouch/System.cs +++ b/profiles/monotouch/System.cs @@ -1212,7 +1212,7 @@ namespace System.ComponentModel } public abstract partial class BaseNumberConverter : System.ComponentModel.TypeConverter { - protected BaseNumberConverter() { } + internal BaseNumberConverter() { } public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext context, System.Type sourceType) { throw null; } public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext context, System.Type destinationType) { throw null; } public override object ConvertFrom(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) { throw null; } diff --git a/profiles/monotouch/mscorlib.cs b/profiles/monotouch/mscorlib.cs index 1d23995..7fd1932 100644 --- a/profiles/monotouch/mscorlib.cs +++ b/profiles/monotouch/mscorlib.cs @@ -3612,7 +3612,6 @@ namespace System [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public Memory(T[] array, int start, int length) { throw null; } public static System.Memory<T> Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } - public System.Memory<T> this[System.Range range] { get { throw null; } } public int Length { get { throw null; } } public System.Span<T> Span { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } public void CopyTo(System.Memory<T> destination) { } @@ -3623,10 +3622,8 @@ namespace System public static implicit operator System.ReadOnlyMemory<T> (System.Memory<T> memory) { throw null; } public static implicit operator System.Memory<T> (T[] array) { throw null; } public System.Buffers.MemoryHandle Pin() { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Memory<T> Slice(System.Index startIndex) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Memory<T> Slice(int start) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Memory<T> Slice(int start, int length) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Memory<T> Slice(System.Range range) { throw null; } public T[] ToArray() { throw null; } public override string ToString() { throw null; } public bool TryCopyTo(System.Memory<T> destination) { throw null; } @@ -3999,7 +3996,6 @@ namespace System [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ReadOnlyMemory(T[] array, int start, int length) { throw null; } public static System.ReadOnlyMemory<T> Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } - public System.ReadOnlyMemory<T> this[System.Range range] { get { throw null; } } public int Length { get { throw null; } } public System.ReadOnlySpan<T> Span { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } public void CopyTo(System.Memory<T> destination) { } @@ -4009,10 +4005,8 @@ namespace System public static implicit operator System.ReadOnlyMemory<T> (System.ArraySegment<T> segment) { throw null; } public static implicit operator System.ReadOnlyMemory<T> (T[] array) { throw null; } public System.Buffers.MemoryHandle Pin() { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlyMemory<T> Slice(System.Index startIndex) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlyMemory<T> Slice(int start) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlyMemory<T> Slice(int start, int length) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlyMemory<T> Slice(System.Range range) { throw null; } public T[] ToArray() { throw null; } public override string ToString() { throw null; } public bool TryCopyTo(System.Memory<T> destination) { throw null; } @@ -4030,9 +4024,7 @@ namespace System [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ReadOnlySpan(T[] array, int start, int length) { throw null; } public static System.ReadOnlySpan<T> Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } - public ref readonly T this[System.Index index] { get { throw null; } } public ref readonly T this[int index] { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } - public System.ReadOnlySpan<T> this[System.Range range] { get { throw null; } } public int Length { get { throw null; } } public void CopyTo(System.Span<T> destination) { } [System.ObsoleteAttribute("Equals() on ReadOnlySpan will always throw an exception. Use == instead.")] @@ -4045,10 +4037,8 @@ namespace System public static implicit operator System.ReadOnlySpan<T> (System.ArraySegment<T> segment) { throw null; } public static implicit operator System.ReadOnlySpan<T> (T[] array) { throw null; } public static bool operator !=(System.ReadOnlySpan<T> left, System.ReadOnlySpan<T> right) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(System.Index startIndex) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(int start) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(int start, int length) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(System.Range range) { throw null; } public T[] ToArray() { throw null; } public override string ToString() { throw null; } public bool TryCopyTo(System.Span<T> destination) { throw null; } @@ -4272,9 +4262,7 @@ namespace System [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public Span(T[] array, int start, int length) { throw null; } public static System.Span<T> Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } - public ref T this[System.Index index] { get { throw null; } } public ref T this[int index] { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } - public System.Span<T> this[System.Range range] { get { throw null; } } public int Length { get { throw null; } } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public void Clear() { } public void CopyTo(System.Span<T> destination) { } @@ -4290,10 +4278,8 @@ namespace System public static implicit operator System.ReadOnlySpan<T> (System.Span<T> span) { throw null; } public static implicit operator System.Span<T> (T[] array) { throw null; } public static bool operator !=(System.Span<T> left, System.Span<T> right) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(System.Index startIndex) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(int start) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(int start, int length) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(System.Range range) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public T[] ToArray() { throw null; } public override string ToString() { throw null; } public bool TryCopyTo(System.Span<T> destination) { throw null; } @@ -4337,11 +4323,7 @@ namespace System [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)][System.CLSCompliantAttribute(false)] public unsafe String(sbyte* value, int startIndex, int length, System.Text.Encoding enc) { } [System.Runtime.CompilerServices.IndexerName("Chars")] - public char this[System.Index index] { get { throw null; } } - [System.Runtime.CompilerServices.IndexerName("Chars")] public char this[int index] { get { throw null; } } - [System.Runtime.CompilerServices.IndexerName("Chars")] - public string this[System.Range range] { get { throw null; } } public int Length { get { throw null; } } public object Clone() { throw null; } public static int Compare(System.String strA, int indexA, System.String strB, int indexB, int length) { throw null; } @@ -4468,10 +4450,8 @@ namespace System public bool StartsWith(System.String value) { throw null; } public bool StartsWith(System.String value, bool ignoreCase, System.Globalization.CultureInfo culture) { throw null; } public bool StartsWith(System.String value, System.StringComparison comparisonType) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.String Substring(System.Index startIndex) { throw null; } public System.String Substring(int startIndex) { throw null; } public System.String Substring(int startIndex, int length) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.String Substring(System.Range range) { throw null; } System.Collections.Generic.IEnumerator<char> System.Collections.Generic.IEnumerable<System.Char>.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } bool System.IConvertible.ToBoolean(System.IFormatProvider provider) { throw null; } @@ -7134,7 +7114,6 @@ namespace System.Collections.ObjectModel bool System.Collections.IList.IsReadOnly { get { throw null; } } object System.Collections.IList.this[int index] { get { throw null; } set { } } public void Add(T item) { } - public void AddRange(System.Collections.Generic.IEnumerable<T> collection) { } public void Clear() { } protected virtual void ClearItems() { } public bool Contains(T item) { throw null; } @@ -7143,15 +7122,9 @@ namespace System.Collections.ObjectModel public int IndexOf(T item) { throw null; } public void Insert(int index, T item) { } protected virtual void InsertItem(int index, T item) { } - protected virtual void InsertItemsRange(int index, System.Collections.Generic.IEnumerable<T> collection) { } - public void InsertRange(int index, System.Collections.Generic.IEnumerable<T> collection) { } public bool Remove(T item) { throw null; } public void RemoveAt(int index) { } protected virtual void RemoveItem(int index) { } - protected virtual void RemoveItemsRange(int index, int count) { } - public void RemoveRange(int index, int count) { } - protected virtual void ReplaceItemsRange(int index, int count, System.Collections.Generic.IEnumerable<T> collection) { } - public void ReplaceRange(int index, int count, System.Collections.Generic.IEnumerable<T> collection) { } protected virtual void SetItem(int index, T item) { } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } @@ -13680,6 +13653,11 @@ namespace System.Runtime.CompilerServices { public DiscardableAttribute() { } } + [System.AttributeUsageAttribute(System.AttributeTargets.Parameter, Inherited=false)] + public sealed partial class EnumeratorCancellationAttribute : System.Attribute + { + public EnumeratorCancellationAttribute() { } + } [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method)] public sealed partial class ExtensionAttribute : System.Attribute { @@ -14878,9 +14856,12 @@ namespace System.Runtime.InteropServices [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]public static void FreeCoTaskMem(System.IntPtr ptr) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)][System.Runtime.ConstrainedExecution.ReliabilityContractAttribute(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)] public static void FreeHGlobal(System.IntPtr hglobal) { } + public static System.Guid GenerateGuidForType(System.Type type) { throw null; } + public static string GenerateProgIdForType(System.Type type) { throw null; } public static System.IntPtr GetComInterfaceForObject(object o, System.Type T) { throw null; } public static System.IntPtr GetComInterfaceForObject(object o, System.Type T, System.Runtime.InteropServices.CustomQueryInterfaceMode mode) { throw null; } public static System.IntPtr GetComInterfaceForObject<T, TInterface>(T o) { throw null; } + public static object GetComObjectData(object obj, object key) { throw null; } public static System.Delegate GetDelegateForFunctionPointer(System.IntPtr ptr, System.Type t) { throw null; } public static TDelegate GetDelegateForFunctionPointer<TDelegate>(System.IntPtr ptr) { throw null; } public static int GetExceptionCode() { throw null; } @@ -14888,9 +14869,11 @@ namespace System.Runtime.InteropServices public static System.Exception GetExceptionForHR(int errorCode, System.IntPtr errorInfo) { throw null; } public static System.IntPtr GetFunctionPointerForDelegate(System.Delegate d) { throw null; } public static System.IntPtr GetFunctionPointerForDelegate<TDelegate>(TDelegate d) { throw null; } + public static System.IntPtr GetHINSTANCE(System.Reflection.Module m) { throw null; } public static int GetHRForException(System.Exception e) { throw null; } [System.Runtime.ConstrainedExecution.ReliabilityContractAttribute(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)] public static int GetHRForLastWin32Error() { throw null; } + public static System.IntPtr GetIDispatchForObject(object o) { throw null; } public static System.IntPtr GetIUnknownForObject(object o) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)][System.Runtime.ConstrainedExecution.ReliabilityContractAttribute(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)] public static int GetLastWin32Error() { throw null; } @@ -14902,6 +14885,7 @@ namespace System.Runtime.InteropServices public static object[] GetObjectsForNativeVariants(System.IntPtr aSrcNativeVariant, int cVars) { throw null; } public static T[] GetObjectsForNativeVariants<T>(System.IntPtr aSrcNativeVariant, int cVars) { throw null; } public static int GetStartComSlot(System.Type t) { throw null; } + public static object GetTypedObjectForIUnknown(System.IntPtr pUnk, System.Type t) { throw null; } public static System.Type GetTypeFromCLSID(System.Guid clsid) { throw null; } public static string GetTypeInfoName(System.Runtime.InteropServices.ComTypes.ITypeInfo typeInfo) { throw null; } public static object GetUniqueObjectForIUnknown(System.IntPtr unknown) { throw null; } @@ -14963,6 +14947,7 @@ namespace System.Runtime.InteropServices public static System.IntPtr SecureStringToCoTaskMemUnicode(System.Security.SecureString s) { throw null; } public static System.IntPtr SecureStringToGlobalAllocAnsi(System.Security.SecureString s) { throw null; } public static System.IntPtr SecureStringToGlobalAllocUnicode(System.Security.SecureString s) { throw null; } + public static bool SetComObjectData(object obj, object key, object data) { throw null; } [System.Runtime.InteropServices.ComVisibleAttribute(true)] public static int SizeOf(object structure) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]public static int SizeOf(System.Type t) { throw null; } @@ -20471,8 +20456,20 @@ namespace System.Security.Cryptography public static System.Security.Cryptography.AsymmetricAlgorithm Create(string algName) { throw null; } public void Dispose() { } protected virtual void Dispose(bool disposing) { } + public virtual byte[] ExportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<byte> passwordBytes, System.Security.Cryptography.PbeParameters pbeParameters) { throw null; } + public virtual byte[] ExportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<char> password, System.Security.Cryptography.PbeParameters pbeParameters) { throw null; } + public virtual byte[] ExportPkcs8PrivateKey() { throw null; } + public virtual byte[] ExportSubjectPublicKeyInfo() { throw null; } public virtual void FromXmlString(string xmlString) { } + public virtual void ImportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<byte> passwordBytes, System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } + public virtual void ImportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<char> password, System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } + public virtual void ImportPkcs8PrivateKey(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } + public virtual void ImportSubjectPublicKeyInfo(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } public virtual string ToXmlString(bool includePrivateParameters) { throw null; } + public virtual bool TryExportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<byte> passwordBytes, System.Security.Cryptography.PbeParameters pbeParameters, System.Span<byte> destination, out int bytesWritten) { throw null; } + public virtual bool TryExportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<char> password, System.Security.Cryptography.PbeParameters pbeParameters, System.Span<byte> destination, out int bytesWritten) { throw null; } + public virtual bool TryExportPkcs8PrivateKey(System.Span<byte> destination, out int bytesWritten) { throw null; } + public virtual bool TryExportSubjectPublicKeyInfo(System.Span<byte> destination, out int bytesWritten) { throw null; } } [System.Runtime.InteropServices.ComVisibleAttribute(true)] public abstract partial class AsymmetricKeyExchangeDeformatter @@ -21016,6 +21013,21 @@ namespace System.Security.Cryptography public override byte[] GetBytes(int cb) { throw null; } public override void Reset() { } } + public enum PbeEncryptionAlgorithm + { + Aes128Cbc = 1, + Aes192Cbc = 2, + Aes256Cbc = 3, + TripleDes3KeyPkcs12 = 4, + Unknown = 0, + } + public sealed partial class PbeParameters + { + public PbeParameters(System.Security.Cryptography.PbeEncryptionAlgorithm encryptionAlgorithm, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, int iterationCount) { } + public System.Security.Cryptography.PbeEncryptionAlgorithm EncryptionAlgorithm { get { throw null; } } + public System.Security.Cryptography.HashAlgorithmName HashAlgorithm { get { throw null; } } + public int IterationCount { get { throw null; } } + } [System.Runtime.InteropServices.ComVisibleAttribute(true)] public partial class PKCS1MaskGenerationMethod : System.Security.Cryptography.MaskGenerationMethod { @@ -21035,6 +21047,8 @@ namespace System.Security.Cryptography public abstract void GetBytes(byte[] data); public virtual void GetBytes(byte[] data, int offset, int count) { } public virtual void GetBytes(System.Span<byte> data) { } + public static int GetInt32(int toExclusive) { throw null; } + public static int GetInt32(int fromInclusive, int toExclusive) { throw null; } public virtual void GetNonZeroBytes(byte[] data) { } public virtual void GetNonZeroBytes(System.Span<byte> data) { } } @@ -21148,10 +21162,14 @@ namespace System.Security.Cryptography public virtual byte[] Encrypt(byte[] data, System.Security.Cryptography.RSAEncryptionPadding padding) { throw null; } public virtual byte[] EncryptValue(byte[] rgb) { throw null; } public abstract System.Security.Cryptography.RSAParameters ExportParameters(bool includePrivateParameters); + public virtual byte[] ExportRSAPrivateKey() { throw null; } + public virtual byte[] ExportRSAPublicKey() { throw null; } public override void FromXmlString(string xmlString) { } protected virtual byte[] HashData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } protected virtual byte[] HashData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public abstract void ImportParameters(System.Security.Cryptography.RSAParameters parameters); + public virtual void ImportRSAPrivateKey(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } + public virtual void ImportRSAPublicKey(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } public virtual byte[] SignData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding) { throw null; } public byte[] SignData(byte[] data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding) { throw null; } public virtual byte[] SignData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding) { throw null; } @@ -21159,6 +21177,8 @@ namespace System.Security.Cryptography public override string ToXmlString(bool includePrivateParameters) { throw null; } public virtual bool TryDecrypt(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.RSAEncryptionPadding padding, out int bytesWritten) { throw null; } public virtual bool TryEncrypt(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.RSAEncryptionPadding padding, out int bytesWritten) { throw null; } + public virtual bool TryExportRSAPrivateKey(System.Span<byte> destination, out int bytesWritten) { throw null; } + public virtual bool TryExportRSAPublicKey(System.Span<byte> destination, out int bytesWritten) { throw null; } protected virtual bool TryHashData(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, out int bytesWritten) { throw null; } public virtual bool TrySignData(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding, out int bytesWritten) { throw null; } public virtual bool TrySignHash(System.ReadOnlySpan<byte> hash, System.Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding, out int bytesWritten) { throw null; } @@ -24966,6 +24986,12 @@ namespace System.Threading.Tasks public static System.Threading.Tasks.Task<System.Threading.Tasks.Task<TResult>> WhenAny<TResult>(params System.Threading.Tasks.Task<TResult>[] tasks) { throw null; } public static System.Runtime.CompilerServices.YieldAwaitable Yield() { throw null; } } + public static partial class TaskAsyncEnumerableExtensions + { + public static System.Runtime.CompilerServices.ConfiguredAsyncDisposable ConfigureAwait(this System.IAsyncDisposable source, bool continueOnCapturedContext) { throw null; } + public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, bool continueOnCapturedContext) { throw null; } + public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> WithCancellation<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, System.Threading.CancellationToken cancellationToken) { throw null; } + } [System.SerializableAttribute] public partial class TaskCanceledException : System.OperationCanceledException { diff --git a/profiles/net_4_x/Facades/netstandard.cs b/profiles/net_4_x/Facades/netstandard.cs index 80eefec..f435448 100644 --- a/profiles/net_4_x/Facades/netstandard.cs +++ b/profiles/net_4_x/Facades/netstandard.cs @@ -1522,6 +1522,7 @@ [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.DisablePrivateReflectionAttribute))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.DiscardableAttribute))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.DynamicAttribute))] +[assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.EnumeratorCancellationAttribute))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.ExtensionAttribute))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.FixedAddressValueTypeAttribute))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.FixedBufferAttribute))] @@ -1891,6 +1892,8 @@ [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.OidGroup))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.PaddingMode))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.PasswordDeriveBytes))] +[assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.PbeEncryptionAlgorithm))] +[assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.PbeParameters))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.PKCS1MaskGenerationMethod))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.RandomNumberGenerator))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.RC2))] @@ -2104,6 +2107,7 @@ [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.Sources.ValueTaskSourceStatus))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.Task))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.Task<>))] +[assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskAsyncEnumerableExtensions))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskCanceledException))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskCompletionSource<>))] [assembly:System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskContinuationOptions))] diff --git a/profiles/net_4_x/System.Core.cs b/profiles/net_4_x/System.Core.cs index 083d380..184ec5a 100644 --- a/profiles/net_4_x/System.Core.cs +++ b/profiles/net_4_x/System.Core.cs @@ -2868,10 +2868,13 @@ namespace System.Security.Cryptography public virtual byte[] DeriveKeyFromHmac(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, byte[] hmacKey, byte[] secretPrepend, byte[] secretAppend) { throw null; } public virtual byte[] DeriveKeyMaterial(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey) { throw null; } public virtual byte[] DeriveKeyTls(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey, byte[] prfLabel, byte[] prfSeed) { throw null; } + public virtual byte[] ExportECPrivateKey() { throw null; } public virtual System.Security.Cryptography.ECParameters ExportExplicitParameters(bool includePrivateParameters) { throw null; } public virtual System.Security.Cryptography.ECParameters ExportParameters(bool includePrivateParameters) { throw null; } public virtual void GenerateKey(System.Security.Cryptography.ECCurve curve) { } + public virtual void ImportECPrivateKey(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } public virtual void ImportParameters(System.Security.Cryptography.ECParameters parameters) { } + public virtual bool TryExportECPrivateKey(System.Span<byte> destination, out int bytesWritten) { throw null; } } [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, MayLeakOnAbort=true)] [System.SerializableAttribute] @@ -2896,16 +2899,19 @@ namespace System.Security.Cryptography public static System.Security.Cryptography.ECDsa Create(System.Security.Cryptography.ECCurve curve) { throw null; } public static System.Security.Cryptography.ECDsa Create(System.Security.Cryptography.ECParameters parameters) { throw null; } public static new System.Security.Cryptography.ECDsa Create(string algorithm) { throw null; } + public virtual byte[] ExportECPrivateKey() { throw null; } public virtual System.Security.Cryptography.ECParameters ExportExplicitParameters(bool includePrivateParameters) { throw null; } public virtual System.Security.Cryptography.ECParameters ExportParameters(bool includePrivateParameters) { throw null; } public virtual void GenerateKey(System.Security.Cryptography.ECCurve curve) { } protected virtual byte[] HashData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } protected virtual byte[] HashData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } + public virtual void ImportECPrivateKey(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } public virtual void ImportParameters(System.Security.Cryptography.ECParameters parameters) { } public virtual byte[] SignData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public virtual byte[] SignData(byte[] data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public virtual byte[] SignData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public abstract byte[] SignHash(byte[] hash); + public virtual bool TryExportECPrivateKey(System.Span<byte> destination, out int bytesWritten) { throw null; } protected virtual bool TryHashData(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, out int bytesWritten) { throw null; } public virtual bool TrySignData(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, out int bytesWritten) { throw null; } public virtual bool TrySignHash(System.ReadOnlySpan<byte> hash, System.Span<byte> destination, out int bytesWritten) { throw null; } @@ -3172,10 +3178,7 @@ namespace System.Threading.Tasks { public static partial class TaskExtensions { - public static System.Runtime.CompilerServices.ConfiguredAsyncDisposable ConfigureAwait(this System.IAsyncDisposable source, bool continueOnCapturedContext) { throw null; } - public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, bool continueOnCapturedContext) { throw null; } public static System.Threading.Tasks.Task Unwrap(this System.Threading.Tasks.Task<System.Threading.Tasks.Task> task) { throw null; } public static System.Threading.Tasks.Task<TResult> Unwrap<TResult>(this System.Threading.Tasks.Task<System.Threading.Tasks.Task<TResult>> task) { throw null; } - public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> WithCancellation<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, System.Threading.CancellationToken cancellationToken) { throw null; } } } diff --git a/profiles/net_4_x/System.cs b/profiles/net_4_x/System.cs index faf5375..851419e 100644 --- a/profiles/net_4_x/System.cs +++ b/profiles/net_4_x/System.cs @@ -2666,7 +2666,7 @@ namespace System.ComponentModel } public abstract partial class BaseNumberConverter : System.ComponentModel.TypeConverter { - protected BaseNumberConverter() { } + internal BaseNumberConverter() { } public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext context, System.Type sourceType) { throw null; } public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext context, System.Type destinationType) { throw null; } public override object ConvertFrom(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) { throw null; } diff --git a/profiles/net_4_x/mscorlib.cs b/profiles/net_4_x/mscorlib.cs index 363cfcb..f25752a 100644 --- a/profiles/net_4_x/mscorlib.cs +++ b/profiles/net_4_x/mscorlib.cs @@ -3657,7 +3657,6 @@ namespace System [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public Memory(T[] array, int start, int length) { throw null; } public static System.Memory<T> Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } - public System.Memory<T> this[System.Range range] { get { throw null; } } public int Length { get { throw null; } } public System.Span<T> Span { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } public void CopyTo(System.Memory<T> destination) { } @@ -3668,10 +3667,8 @@ namespace System public static implicit operator System.ReadOnlyMemory<T> (System.Memory<T> memory) { throw null; } public static implicit operator System.Memory<T> (T[] array) { throw null; } public System.Buffers.MemoryHandle Pin() { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Memory<T> Slice(System.Index startIndex) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Memory<T> Slice(int start) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Memory<T> Slice(int start, int length) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Memory<T> Slice(System.Range range) { throw null; } public T[] ToArray() { throw null; } public override string ToString() { throw null; } public bool TryCopyTo(System.Memory<T> destination) { throw null; } @@ -4044,7 +4041,6 @@ namespace System [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ReadOnlyMemory(T[] array, int start, int length) { throw null; } public static System.ReadOnlyMemory<T> Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } - public System.ReadOnlyMemory<T> this[System.Range range] { get { throw null; } } public int Length { get { throw null; } } public System.ReadOnlySpan<T> Span { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } public void CopyTo(System.Memory<T> destination) { } @@ -4054,10 +4050,8 @@ namespace System public static implicit operator System.ReadOnlyMemory<T> (System.ArraySegment<T> segment) { throw null; } public static implicit operator System.ReadOnlyMemory<T> (T[] array) { throw null; } public System.Buffers.MemoryHandle Pin() { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlyMemory<T> Slice(System.Index startIndex) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlyMemory<T> Slice(int start) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlyMemory<T> Slice(int start, int length) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlyMemory<T> Slice(System.Range range) { throw null; } public T[] ToArray() { throw null; } public override string ToString() { throw null; } public bool TryCopyTo(System.Memory<T> destination) { throw null; } @@ -4075,9 +4069,7 @@ namespace System [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ReadOnlySpan(T[] array, int start, int length) { throw null; } public static System.ReadOnlySpan<T> Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } - public ref readonly T this[System.Index index] { get { throw null; } } public ref readonly T this[int index] { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } - public System.ReadOnlySpan<T> this[System.Range range] { get { throw null; } } public int Length { get { throw null; } } public void CopyTo(System.Span<T> destination) { } [System.ObsoleteAttribute("Equals() on ReadOnlySpan will always throw an exception. Use == instead.")] @@ -4090,10 +4082,8 @@ namespace System public static implicit operator System.ReadOnlySpan<T> (System.ArraySegment<T> segment) { throw null; } public static implicit operator System.ReadOnlySpan<T> (T[] array) { throw null; } public static bool operator !=(System.ReadOnlySpan<T> left, System.ReadOnlySpan<T> right) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(System.Index startIndex) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(int start) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(int start, int length) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(System.Range range) { throw null; } public T[] ToArray() { throw null; } public override string ToString() { throw null; } public bool TryCopyTo(System.Span<T> destination) { throw null; } @@ -4317,9 +4307,7 @@ namespace System [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public Span(T[] array, int start, int length) { throw null; } public static System.Span<T> Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } - public ref T this[System.Index index] { get { throw null; } } public ref T this[int index] { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } - public System.Span<T> this[System.Range range] { get { throw null; } } public int Length { get { throw null; } } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public void Clear() { } public void CopyTo(System.Span<T> destination) { } @@ -4335,10 +4323,8 @@ namespace System public static implicit operator System.ReadOnlySpan<T> (System.Span<T> span) { throw null; } public static implicit operator System.Span<T> (T[] array) { throw null; } public static bool operator !=(System.Span<T> left, System.Span<T> right) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(System.Index startIndex) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(int start) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(int start, int length) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(System.Range range) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public T[] ToArray() { throw null; } public override string ToString() { throw null; } public bool TryCopyTo(System.Span<T> destination) { throw null; } @@ -4382,11 +4368,7 @@ namespace System [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)][System.CLSCompliantAttribute(false)] public unsafe String(sbyte* value, int startIndex, int length, System.Text.Encoding enc) { } [System.Runtime.CompilerServices.IndexerName("Chars")] - public char this[System.Index index] { get { throw null; } } - [System.Runtime.CompilerServices.IndexerName("Chars")] public char this[int index] { get { throw null; } } - [System.Runtime.CompilerServices.IndexerName("Chars")] - public string this[System.Range range] { get { throw null; } } public int Length { get { throw null; } } public object Clone() { throw null; } public static int Compare(System.String strA, int indexA, System.String strB, int indexB, int length) { throw null; } @@ -4513,10 +4495,8 @@ namespace System public bool StartsWith(System.String value) { throw null; } public bool StartsWith(System.String value, bool ignoreCase, System.Globalization.CultureInfo culture) { throw null; } public bool StartsWith(System.String value, System.StringComparison comparisonType) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.String Substring(System.Index startIndex) { throw null; } public System.String Substring(int startIndex) { throw null; } public System.String Substring(int startIndex, int length) { throw null; } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.String Substring(System.Range range) { throw null; } System.Collections.Generic.IEnumerator<char> System.Collections.Generic.IEnumerable<System.Char>.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } bool System.IConvertible.ToBoolean(System.IFormatProvider provider) { throw null; } @@ -7161,7 +7141,6 @@ namespace System.Collections.ObjectModel bool System.Collections.IList.IsReadOnly { get { throw null; } } object System.Collections.IList.this[int index] { get { throw null; } set { } } public void Add(T item) { } - public void AddRange(System.Collections.Generic.IEnumerable<T> collection) { } public void Clear() { } protected virtual void ClearItems() { } public bool Contains(T item) { throw null; } @@ -7170,15 +7149,9 @@ namespace System.Collections.ObjectModel public int IndexOf(T item) { throw null; } public void Insert(int index, T item) { } protected virtual void InsertItem(int index, T item) { } - protected virtual void InsertItemsRange(int index, System.Collections.Generic.IEnumerable<T> collection) { } - public void InsertRange(int index, System.Collections.Generic.IEnumerable<T> collection) { } public bool Remove(T item) { throw null; } public void RemoveAt(int index) { } protected virtual void RemoveItem(int index) { } - protected virtual void RemoveItemsRange(int index, int count) { } - public void RemoveRange(int index, int count) { } - protected virtual void ReplaceItemsRange(int index, int count, System.Collections.Generic.IEnumerable<T> collection) { } - public void ReplaceRange(int index, int count, System.Collections.Generic.IEnumerable<T> collection) { } protected virtual void SetItem(int index, T item) { } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } @@ -13918,6 +13891,11 @@ namespace System.Runtime.CompilerServices { public DiscardableAttribute() { } } + [System.AttributeUsageAttribute(System.AttributeTargets.Parameter, Inherited=false)] + public sealed partial class EnumeratorCancellationAttribute : System.Attribute + { + public EnumeratorCancellationAttribute() { } + } [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method)] public sealed partial class ExtensionAttribute : System.Attribute { @@ -21235,8 +21213,20 @@ namespace System.Security.Cryptography public static System.Security.Cryptography.AsymmetricAlgorithm Create(string algName) { throw null; } public void Dispose() { } protected virtual void Dispose(bool disposing) { } + public virtual byte[] ExportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<byte> passwordBytes, System.Security.Cryptography.PbeParameters pbeParameters) { throw null; } + public virtual byte[] ExportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<char> password, System.Security.Cryptography.PbeParameters pbeParameters) { throw null; } + public virtual byte[] ExportPkcs8PrivateKey() { throw null; } + public virtual byte[] ExportSubjectPublicKeyInfo() { throw null; } public virtual void FromXmlString(string xmlString) { } + public virtual void ImportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<byte> passwordBytes, System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } + public virtual void ImportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<char> password, System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } + public virtual void ImportPkcs8PrivateKey(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } + public virtual void ImportSubjectPublicKeyInfo(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } public virtual string ToXmlString(bool includePrivateParameters) { throw null; } + public virtual bool TryExportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<byte> passwordBytes, System.Security.Cryptography.PbeParameters pbeParameters, System.Span<byte> destination, out int bytesWritten) { throw null; } + public virtual bool TryExportEncryptedPkcs8PrivateKey(System.ReadOnlySpan<char> password, System.Security.Cryptography.PbeParameters pbeParameters, System.Span<byte> destination, out int bytesWritten) { throw null; } + public virtual bool TryExportPkcs8PrivateKey(System.Span<byte> destination, out int bytesWritten) { throw null; } + public virtual bool TryExportSubjectPublicKeyInfo(System.Span<byte> destination, out int bytesWritten) { throw null; } } [System.Runtime.InteropServices.ComVisibleAttribute(true)] public abstract partial class AsymmetricKeyExchangeDeformatter @@ -21786,6 +21776,21 @@ namespace System.Security.Cryptography public override byte[] GetBytes(int cb) { throw null; } public override void Reset() { } } + public enum PbeEncryptionAlgorithm + { + Aes128Cbc = 1, + Aes192Cbc = 2, + Aes256Cbc = 3, + TripleDes3KeyPkcs12 = 4, + Unknown = 0, + } + public sealed partial class PbeParameters + { + public PbeParameters(System.Security.Cryptography.PbeEncryptionAlgorithm encryptionAlgorithm, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, int iterationCount) { } + public System.Security.Cryptography.PbeEncryptionAlgorithm EncryptionAlgorithm { get { throw null; } } + public System.Security.Cryptography.HashAlgorithmName HashAlgorithm { get { throw null; } } + public int IterationCount { get { throw null; } } + } [System.Runtime.InteropServices.ComVisibleAttribute(true)] public partial class PKCS1MaskGenerationMethod : System.Security.Cryptography.MaskGenerationMethod { @@ -21805,6 +21810,8 @@ namespace System.Security.Cryptography public abstract void GetBytes(byte[] data); public virtual void GetBytes(byte[] data, int offset, int count) { } public virtual void GetBytes(System.Span<byte> data) { } + public static int GetInt32(int toExclusive) { throw null; } + public static int GetInt32(int fromInclusive, int toExclusive) { throw null; } public virtual void GetNonZeroBytes(byte[] data) { } public virtual void GetNonZeroBytes(System.Span<byte> data) { } } @@ -21926,10 +21933,14 @@ namespace System.Security.Cryptography public virtual byte[] Encrypt(byte[] data, System.Security.Cryptography.RSAEncryptionPadding padding) { throw null; } public virtual byte[] EncryptValue(byte[] rgb) { throw null; } public abstract System.Security.Cryptography.RSAParameters ExportParameters(bool includePrivateParameters); + public virtual byte[] ExportRSAPrivateKey() { throw null; } + public virtual byte[] ExportRSAPublicKey() { throw null; } public override void FromXmlString(string xmlString) { } protected virtual byte[] HashData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } protected virtual byte[] HashData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public abstract void ImportParameters(System.Security.Cryptography.RSAParameters parameters); + public virtual void ImportRSAPrivateKey(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } + public virtual void ImportRSAPublicKey(System.ReadOnlySpan<byte> source, out int bytesRead) { throw null; } public virtual byte[] SignData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding) { throw null; } public byte[] SignData(byte[] data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding) { throw null; } public virtual byte[] SignData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding) { throw null; } @@ -21937,6 +21948,8 @@ namespace System.Security.Cryptography public override string ToXmlString(bool includePrivateParameters) { throw null; } public virtual bool TryDecrypt(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.RSAEncryptionPadding padding, out int bytesWritten) { throw null; } public virtual bool TryEncrypt(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.RSAEncryptionPadding padding, out int bytesWritten) { throw null; } + public virtual bool TryExportRSAPrivateKey(System.Span<byte> destination, out int bytesWritten) { throw null; } + public virtual bool TryExportRSAPublicKey(System.Span<byte> destination, out int bytesWritten) { throw null; } protected virtual bool TryHashData(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, out int bytesWritten) { throw null; } public virtual bool TrySignData(System.ReadOnlySpan<byte> data, System.Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding, out int bytesWritten) { throw null; } public virtual bool TrySignHash(System.ReadOnlySpan<byte> hash, System.Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding, out int bytesWritten) { throw null; } @@ -25762,6 +25775,12 @@ namespace System.Threading.Tasks public static System.Threading.Tasks.Task<System.Threading.Tasks.Task<TResult>> WhenAny<TResult>(params System.Threading.Tasks.Task<TResult>[] tasks) { throw null; } public static System.Runtime.CompilerServices.YieldAwaitable Yield() { throw null; } } + public static partial class TaskAsyncEnumerableExtensions + { + public static System.Runtime.CompilerServices.ConfiguredAsyncDisposable ConfigureAwait(this System.IAsyncDisposable source, bool continueOnCapturedContext) { throw null; } + public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, bool continueOnCapturedContext) { throw null; } + public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> WithCancellation<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, System.Threading.CancellationToken cancellationToken) { throw null; } + } [System.SerializableAttribute] public partial class TaskCanceledException : System.OperationCanceledException { |