Skip to content
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions src/libraries/System.Private.CoreLib/src/Resources/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -3679,4 +3679,52 @@
<data name="Argument_SpansMustHaveSameLength" xml:space="preserve">
<value>Length of items must be same as length of keys.</value>
</data>
<data name="NotSupported_CannotWriteToBufferedStreamIfReadBufferCannotBeFlushed" xml:space="preserve">
<value>Cannot write to a BufferedStream while the read buffer is not empty if the underlying stream is not seekable. Ensure that the stream underlying this BufferedStream can seek or avoid interleaving read and write operations on this BufferedStream.</value>
</data>
<data name="GenericInvalidData" xml:space="preserve">
<value>Found invalid data while decoding.</value>
</data>
<data name="Argument_ResourceScopeWrongDirection" xml:space="preserve">
<value>Resource type in the ResourceScope enum is going from a more restrictive resource type to a more general one. From: "{0}" To: "{1}"</value>
</data>
<data name="ArgumentNull_TypeRequiredByResourceScope" xml:space="preserve">
<value>The type parameter cannot be null when scoping the resource's visibility to Private or Assembly.</value>
</data>
<data name="Argument_BadResourceScopeTypeBits" xml:space="preserve">
<value>Unknown value for the ResourceScope: {0} Too many resource type bits may be set.</value>
</data>
<data name="Argument_BadResourceScopeVisibilityBits" xml:space="preserve">
<value>Unknown value for the ResourceScope: {0} Too many resource visibility bits may be set.</value>
</data>
<data name="net_emptystringcall" xml:space="preserve">
<value>The parameter '{0}' cannot be an empty string.</value>
</data>
<data name="Argument_EmptyApplicationName" xml:space="preserve">
<value>ApplicationId cannot have an empty string for the name.</value>
</data>
<data name="Argument_FrameworkNameInvalid" xml:space="preserve">
<value> FrameworkName is invalid.</value>
</data>
<data name="Argument_FrameworkNameInvalidVersion" xml:space="preserve">
<value>FrameworkName version component is invalid.</value>
</data>
<data name="Argument_FrameworkNameMissingVersion" xml:space="preserve">
<value>FrameworkName version component is missing.</value>
</data>
<data name="Argument_FrameworkNameTooShort" xml:space="preserve">
<value>FrameworkName cannot have less than two components or more than three components.</value>
</data>
<data name="Arg_SwitchExpressionException" xml:space="preserve">
<value>Non-exhaustive switch expression failed to match its input.</value>
</data>
<data name="Arg_ContextMarshalException" xml:space="preserve">
<value>Attempted to marshal an object across a context boundary.</value>
</data>
<data name="Arg_AppDomainUnloadedException" xml:space="preserve">
<value>Attempted to access an unloaded AppDomain.</value>
</data>
<data name="SwitchExpressionException_UnmatchedValue" xml:space="preserve">
<value>Unmatched value was {0}.</value>
</data>
</root>

Large diffs are not rendered by default.

18 changes: 8 additions & 10 deletions src/libraries/System.Private.CoreLib/src/System/Action.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@ namespace System
public delegate void Action<in T1, in T2, in T3, in T4, in T5, in T6>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6);
public delegate void Action<in T1, in T2, in T3, in T4, in T5, in T6, in T7>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7);
public delegate void Action<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8);

public delegate TResult Func<out TResult>();
public delegate TResult Func<in T, out TResult>(T arg);
public delegate TResult Func<in T1, in T2, out TResult>(T1 arg1, T2 arg2);
public delegate TResult Func<in T1, in T2, in T3, out TResult>(T1 arg1, T2 arg2, T3 arg3);
public delegate TResult Func<in T1, in T2, in T3, in T4, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4);
public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5);
public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6);
public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7);
public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8);
public delegate void Action<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9);
public delegate void Action<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, in T10>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10);
public delegate void Action<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, in T10, in T11>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11);
public delegate void Action<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, in T10, in T11, in T12>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12);
public delegate void Action<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, in T10, in T11, in T12, in T13>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13);
public delegate void Action<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, in T10, in T11, in T12, in T13, in T14>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14);
public delegate void Action<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, in T10, in T11, in T12, in T13, in T14, in T15>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14, T15 arg15);
public delegate void Action<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, in T10, in T11, in T12, in T13, in T14, in T15, in T16>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14, T15 arg15, T16 arg16);

public delegate int Comparison<in T>(T x, T y);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@

namespace System
{
public delegate TResult Func<out TResult>();
public delegate TResult Func<in T, out TResult>(T arg);
public delegate TResult Func<in T1, in T2, out TResult>(T1 arg1, T2 arg2);
public delegate TResult Func<in T1, in T2, in T3, out TResult>(T1 arg1, T2 arg2, T3 arg3);
public delegate TResult Func<in T1, in T2, in T3, in T4, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4);
public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5);
public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6);
public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7);
public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8);
public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9);

public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, in T10, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10);

public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, in T10, in T11, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11);

public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, in T10, in T11, in T12, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12);

public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, in T10, in T11, in T12, in T13, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13);

public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, in T10, in T11, in T12, in T13, in T14, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14);

public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, in T10, in T11, in T12, in T13, in T14, in T15, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14, T15 arg15);

public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, in T10, in T11, in T12, in T13, in T14, in T15, in T16, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14, T15 arg15, T16 arg16);
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace System.Runtime.CompilerServices
/// The exception optionally contains an object representing the unmatched value.
/// </summary>
[Serializable]
[TypeForwardedFrom("System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public sealed class SwitchExpressionException : InvalidOperationException
{
public SwitchExpressionException()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,76 @@
// Changes to this file must follow the http://aka.ms/api-review process.
// ------------------------------------------------------------------------------

#pragma warning disable 0618

[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.AppDomain))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.AppDomainSetup))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.AppDomainUnloadedException))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ApplicationId))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.AssemblyLoadEventArgs))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.AssemblyLoadEventHandler))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Base64FormattingOptions))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.BitConverter))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CannotUnloadAppDomainException))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ContextBoundObject))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ContextMarshalException))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ContextStaticAttribute))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Convert))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Environment))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.EnvironmentVariableTarget))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.LoaderOptimization))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.LoaderOptimizationAttribute))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Math))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.MathF))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.OperatingSystem))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.PlatformID))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Progress<>))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Random))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ResolveEventHandler))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.StringComparer))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.StringNormalizationExtensions))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UriBuilder))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.Compiler.IndentedTextWriter))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.ArrayList))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Comparer))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Hashtable))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.IHashCodeProvider))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Stopwatch))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.GlobalizationExtensions))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.BinaryReader))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.BinaryWriter))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.BufferedStream))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.EndOfStreamException))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.InvalidDataException))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.MemoryStream))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.Path))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.StreamReader))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.StreamWriter))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.StringReader))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.StringWriter))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.TextReader))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.TextWriter))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.MidpointRounding))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.WebUtility))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.BitOperations))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.AssemblyNameProxy))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.ProfileOptimization))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.SwitchExpressionException))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Versioning.ComponentGuaranteesAttribute))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Versioning.ComponentGuaranteesOptions))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Versioning.FrameworkName))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Versioning.ResourceConsumptionAttribute))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Versioning.ResourceExposureAttribute))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Versioning.ResourceScope))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Versioning.VersioningHelper))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.IPermission))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.ISecurityEncodable))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.IStackWalk))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.PermissionSet))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.SecurityElement))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Permissions.CodeAccessSecurityAttribute))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Permissions.PermissionState))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Permissions.SecurityAction))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Permissions.SecurityAttribute))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Permissions.SecurityPermissionAttribute))]
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Permissions.SecurityPermissionFlag))]
Loading