Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion apiCount.include.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**API count: 921**
**API count: 922**

### Per Target Framework

Expand Down
8 changes: 4 additions & 4 deletions assemblySize.include.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
| net481 | 8.5KB | 295.0KB | +286.5KB | +9.0KB | +6.5KB | +9.0KB | +14.0KB |
| netcoreapp2.0 | 9.0KB | 271.5KB | +262.5KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
| netcoreapp2.1 | 9.0KB | 250.5KB | +241.5KB | +9.0KB | +7.0KB | +9.5KB | +14.0KB |
| netcoreapp2.2 | 9.0KB | 250.5KB | +241.5KB | +9.0KB | +7.0KB | +9.5KB | +14.0KB |
| netcoreapp3.0 | 9.5KB | 241.5KB | +232.0KB | +9.0KB | +6.5KB | +9.5KB | +14.0KB |
| netcoreapp2.2 | 9.0KB | 251.0KB | +242.0KB | +8.5KB | +6.5KB | +9.0KB | +13.5KB |
| netcoreapp3.0 | 9.5KB | 241.5KB | +232.0KB | +9.5KB | +6.5KB | +9.5KB | +14.0KB |
| netcoreapp3.1 | 9.5KB | 240.0KB | +230.5KB | +9.0KB | +6.5KB | +9.0KB | +14.0KB |
| net5.0 | 9.5KB | 204.5KB | +195.0KB | +9.0KB | +6.5KB | +9.0KB | +14.0KB |
| net6.0 | 10.0KB | 149.0KB | +139.0KB | +9.5KB | +7.0KB | +512bytes | +3.5KB |
Expand All @@ -40,8 +40,8 @@
| net481 | 8.5KB | 430.1KB | +421.6KB | +16.7KB | +8.2KB | +13.9KB | +19.4KB |
| netcoreapp2.0 | 9.0KB | 397.4KB | +388.4KB | +16.7KB | +8.2KB | +13.9KB | +18.9KB |
| netcoreapp2.1 | 9.0KB | 365.2KB | +356.2KB | +16.7KB | +8.7KB | +14.4KB | +19.4KB |
| netcoreapp2.2 | 9.0KB | 365.2KB | +356.2KB | +16.7KB | +8.7KB | +14.4KB | +19.4KB |
| netcoreapp3.0 | 9.5KB | 346.9KB | +337.4KB | +16.7KB | +8.2KB | +14.4KB | +19.4KB |
| netcoreapp2.2 | 9.0KB | 365.7KB | +356.7KB | +16.2KB | +8.2KB | +13.9KB | +18.9KB |
| netcoreapp3.0 | 9.5KB | 346.9KB | +337.4KB | +17.2KB | +8.2KB | +14.4KB | +19.4KB |
| netcoreapp3.1 | 9.5KB | 345.4KB | +335.9KB | +16.7KB | +8.2KB | +13.9KB | +19.4KB |
| net5.0 | 9.5KB | 292.3KB | +282.8KB | +16.7KB | +8.2KB | +13.9KB | +19.4KB |
| net6.0 | 10.0KB | 219.4KB | +209.4KB | +17.2KB | +8.7KB | +1.1KB | +4.2KB |
Expand Down
14 changes: 7 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The package targets `netstandard2.0` and is designed to support the following ru
* `uap10`


**API count: 921**<!-- include: apiCount. path: /apiCount.include.md -->
**API count: 922**<!-- include: apiCount. path: /apiCount.include.md -->

### Per Target Framework

Expand Down Expand Up @@ -107,8 +107,8 @@ This project uses features from the current stable SDK and C# language. As such
| net481 | 8.5KB | 295.0KB | +286.5KB | +9.0KB | +6.5KB | +9.0KB | +14.0KB |
| netcoreapp2.0 | 9.0KB | 271.5KB | +262.5KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
| netcoreapp2.1 | 9.0KB | 250.5KB | +241.5KB | +9.0KB | +7.0KB | +9.5KB | +14.0KB |
| netcoreapp2.2 | 9.0KB | 250.5KB | +241.5KB | +9.0KB | +7.0KB | +9.5KB | +14.0KB |
| netcoreapp3.0 | 9.5KB | 241.5KB | +232.0KB | +9.0KB | +6.5KB | +9.5KB | +14.0KB |
| netcoreapp2.2 | 9.0KB | 251.0KB | +242.0KB | +8.5KB | +6.5KB | +9.0KB | +13.5KB |
| netcoreapp3.0 | 9.5KB | 241.5KB | +232.0KB | +9.5KB | +6.5KB | +9.5KB | +14.0KB |
| netcoreapp3.1 | 9.5KB | 240.0KB | +230.5KB | +9.0KB | +6.5KB | +9.0KB | +14.0KB |
| net5.0 | 9.5KB | 204.5KB | +195.0KB | +9.0KB | +6.5KB | +9.0KB | +14.0KB |
| net6.0 | 10.0KB | 149.0KB | +139.0KB | +9.5KB | +7.0KB | +512bytes | +3.5KB |
Expand All @@ -134,8 +134,8 @@ This project uses features from the current stable SDK and C# language. As such
| net481 | 8.5KB | 430.1KB | +421.6KB | +16.7KB | +8.2KB | +13.9KB | +19.4KB |
| netcoreapp2.0 | 9.0KB | 397.4KB | +388.4KB | +16.7KB | +8.2KB | +13.9KB | +18.9KB |
| netcoreapp2.1 | 9.0KB | 365.2KB | +356.2KB | +16.7KB | +8.7KB | +14.4KB | +19.4KB |
| netcoreapp2.2 | 9.0KB | 365.2KB | +356.2KB | +16.7KB | +8.7KB | +14.4KB | +19.4KB |
| netcoreapp3.0 | 9.5KB | 346.9KB | +337.4KB | +16.7KB | +8.2KB | +14.4KB | +19.4KB |
| netcoreapp2.2 | 9.0KB | 365.7KB | +356.7KB | +16.2KB | +8.2KB | +13.9KB | +18.9KB |
| netcoreapp3.0 | 9.5KB | 346.9KB | +337.4KB | +17.2KB | +8.2KB | +14.4KB | +19.4KB |
| netcoreapp3.1 | 9.5KB | 345.4KB | +335.9KB | +16.7KB | +8.2KB | +13.9KB | +19.4KB |
| net5.0 | 9.5KB | 292.3KB | +282.8KB | +16.7KB | +8.2KB | +13.9KB | +19.4KB |
| net6.0 | 10.0KB | 219.4KB | +209.4KB | +17.2KB | +8.7KB | +1.1KB | +4.2KB |
Expand Down Expand Up @@ -2067,7 +2067,7 @@ void ObjectDisposedExceptionExample(bool isDisposed)
ObjectDisposedException.ThrowIf(isDisposed, typeof(Consume));
}
```
<sup><a href='/src/Consume/Consume.cs#L594-L618' title='Snippet source file'>snippet source</a> | <a href='#snippet-ArgumentExceptionUsage' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Consume/Consume.cs#L595-L619' title='Snippet source file'>snippet source</a> | <a href='#snippet-ArgumentExceptionUsage' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->


Expand All @@ -2086,7 +2086,7 @@ void EnsureExample(Order order, Customer customer, string customerId, string ema
this.quantity = Ensure.NotNegativeOrZero(quantity);
}
```
<sup><a href='/src/Consume/Consume.cs#L624-L636' title='Snippet source file'>snippet source</a> | <a href='#snippet-EnsureUsage' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Consume/Consume.cs#L625-L637' title='Snippet source file'>snippet source</a> | <a href='#snippet-EnsureUsage' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->


Expand Down
1 change: 1 addition & 0 deletions src/Consume/Consume.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class Consume
type = typeof(DynamicallyAccessedMembersAttribute);
type = typeof(DynamicDependencyAttribute);
type = typeof(RequiresDynamicCodeAttribute);
type = typeof(RequiresAssemblyFilesAttribute);
type = typeof(RequiresUnreferencedCodeAttribute);
type = typeof(UnconditionalSuppressMessageAttribute);
type = typeof(CompilerFeatureRequiredAttribute);
Expand Down
56 changes: 56 additions & 0 deletions src/Polyfill/Trimming/RequiresAssemblyFilesAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#if !NET6_0_OR_GREATER

#nullable enable

namespace System.Diagnostics.CodeAnalysis;

using Targets = AttributeTargets;

/// <summary>
/// Indicates that the specified member requires assembly files to be on disk.
/// </summary>
[ExcludeFromCodeCoverage]
[DebuggerNonUserCode]
[AttributeUsage(
validOn: Targets.Constructor |
Targets.Event |
Targets.Method |
Targets.Property,
Inherited = false)]
#if PolyUseEmbeddedAttribute
[global::Microsoft.CodeAnalysis.EmbeddedAttribute]
#endif
#if PolyPublic
public
#endif
sealed class RequiresAssemblyFilesAttribute :
Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="RequiresAssemblyFilesAttribute"/> class.
/// </summary>
public RequiresAssemblyFilesAttribute()
{
}

/// <summary>
/// Initializes a new instance of the <see cref="RequiresAssemblyFilesAttribute"/> class
/// with the specified message.
/// </summary>
public RequiresAssemblyFilesAttribute(string message) =>
Message = message;

/// <summary>
/// Gets an optional message that contains information about the requirement for assembly files to be on disk.
/// </summary>
public string? Message { get; }

/// <summary>
/// Gets or sets an optional URL that contains more information about the member,
/// why it requires assembly files to be on disk, and what options a consumer has to deal with it.
/// </summary>
public string? Url { get; set; }
}
#else
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.RequiresAssemblyFilesAttribute))]
#endif
1 change: 1 addition & 0 deletions src/Split/net10.0/TypeForwardeds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
[assembly: TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute))]
[assembly: TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes))]
[assembly: TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute))]
[assembly: TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.RequiresAssemblyFilesAttribute))]
[assembly: TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute))]
[assembly: TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute))]
[assembly: TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessageAttribute))]
1 change: 1 addition & 0 deletions src/Split/net11.0/TypeForwardeds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
[assembly: TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute))]
[assembly: TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes))]
[assembly: TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute))]
[assembly: TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.RequiresAssemblyFilesAttribute))]
[assembly: TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute))]
[assembly: TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute))]
[assembly: TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessageAttribute))]
47 changes: 47 additions & 0 deletions src/Split/net461/Trimming/RequiresAssemblyFilesAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// <auto-generated />
#pragma warning disable
#nullable enable
namespace System.Diagnostics.CodeAnalysis;
using Targets = AttributeTargets;
/// <summary>
/// Indicates that the specified member requires assembly files to be on disk.
/// </summary>
[ExcludeFromCodeCoverage]
[DebuggerNonUserCode]
[AttributeUsage(
validOn: Targets.Constructor |
Targets.Event |
Targets.Method |
Targets.Property,
Inherited = false)]
#if PolyUseEmbeddedAttribute
[global::Microsoft.CodeAnalysis.EmbeddedAttribute]
#endif
#if PolyPublic
public
#endif
sealed class RequiresAssemblyFilesAttribute :
Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="RequiresAssemblyFilesAttribute"/> class.
/// </summary>
public RequiresAssemblyFilesAttribute()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="RequiresAssemblyFilesAttribute"/> class
/// with the specified message.
/// </summary>
public RequiresAssemblyFilesAttribute(string message) =>
Message = message;
/// <summary>
/// Gets an optional message that contains information about the requirement for assembly files to be on disk.
/// </summary>
public string? Message { get; }
/// <summary>
/// Gets or sets an optional URL that contains more information about the member,
/// why it requires assembly files to be on disk, and what options a consumer has to deal with it.
/// </summary>
public string? Url { get; set; }
}
47 changes: 47 additions & 0 deletions src/Split/net462/Trimming/RequiresAssemblyFilesAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// <auto-generated />
#pragma warning disable
#nullable enable
namespace System.Diagnostics.CodeAnalysis;
using Targets = AttributeTargets;
/// <summary>
/// Indicates that the specified member requires assembly files to be on disk.
/// </summary>
[ExcludeFromCodeCoverage]
[DebuggerNonUserCode]
[AttributeUsage(
validOn: Targets.Constructor |
Targets.Event |
Targets.Method |
Targets.Property,
Inherited = false)]
#if PolyUseEmbeddedAttribute
[global::Microsoft.CodeAnalysis.EmbeddedAttribute]
#endif
#if PolyPublic
public
#endif
sealed class RequiresAssemblyFilesAttribute :
Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="RequiresAssemblyFilesAttribute"/> class.
/// </summary>
public RequiresAssemblyFilesAttribute()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="RequiresAssemblyFilesAttribute"/> class
/// with the specified message.
/// </summary>
public RequiresAssemblyFilesAttribute(string message) =>
Message = message;
/// <summary>
/// Gets an optional message that contains information about the requirement for assembly files to be on disk.
/// </summary>
public string? Message { get; }
/// <summary>
/// Gets or sets an optional URL that contains more information about the member,
/// why it requires assembly files to be on disk, and what options a consumer has to deal with it.
/// </summary>
public string? Url { get; set; }
}
47 changes: 47 additions & 0 deletions src/Split/net47/Trimming/RequiresAssemblyFilesAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// <auto-generated />
#pragma warning disable
#nullable enable
namespace System.Diagnostics.CodeAnalysis;
using Targets = AttributeTargets;
/// <summary>
/// Indicates that the specified member requires assembly files to be on disk.
/// </summary>
[ExcludeFromCodeCoverage]
[DebuggerNonUserCode]
[AttributeUsage(
validOn: Targets.Constructor |
Targets.Event |
Targets.Method |
Targets.Property,
Inherited = false)]
#if PolyUseEmbeddedAttribute
[global::Microsoft.CodeAnalysis.EmbeddedAttribute]
#endif
#if PolyPublic
public
#endif
sealed class RequiresAssemblyFilesAttribute :
Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="RequiresAssemblyFilesAttribute"/> class.
/// </summary>
public RequiresAssemblyFilesAttribute()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="RequiresAssemblyFilesAttribute"/> class
/// with the specified message.
/// </summary>
public RequiresAssemblyFilesAttribute(string message) =>
Message = message;
/// <summary>
/// Gets an optional message that contains information about the requirement for assembly files to be on disk.
/// </summary>
public string? Message { get; }
/// <summary>
/// Gets or sets an optional URL that contains more information about the member,
/// why it requires assembly files to be on disk, and what options a consumer has to deal with it.
/// </summary>
public string? Url { get; set; }
}
47 changes: 47 additions & 0 deletions src/Split/net471/Trimming/RequiresAssemblyFilesAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// <auto-generated />
#pragma warning disable
#nullable enable
namespace System.Diagnostics.CodeAnalysis;
using Targets = AttributeTargets;
/// <summary>
/// Indicates that the specified member requires assembly files to be on disk.
/// </summary>
[ExcludeFromCodeCoverage]
[DebuggerNonUserCode]
[AttributeUsage(
validOn: Targets.Constructor |
Targets.Event |
Targets.Method |
Targets.Property,
Inherited = false)]
#if PolyUseEmbeddedAttribute
[global::Microsoft.CodeAnalysis.EmbeddedAttribute]
#endif
#if PolyPublic
public
#endif
sealed class RequiresAssemblyFilesAttribute :
Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="RequiresAssemblyFilesAttribute"/> class.
/// </summary>
public RequiresAssemblyFilesAttribute()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="RequiresAssemblyFilesAttribute"/> class
/// with the specified message.
/// </summary>
public RequiresAssemblyFilesAttribute(string message) =>
Message = message;
/// <summary>
/// Gets an optional message that contains information about the requirement for assembly files to be on disk.
/// </summary>
public string? Message { get; }
/// <summary>
/// Gets or sets an optional URL that contains more information about the member,
/// why it requires assembly files to be on disk, and what options a consumer has to deal with it.
/// </summary>
public string? Url { get; set; }
}
47 changes: 47 additions & 0 deletions src/Split/net472/Trimming/RequiresAssemblyFilesAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// <auto-generated />
#pragma warning disable
#nullable enable
namespace System.Diagnostics.CodeAnalysis;
using Targets = AttributeTargets;
/// <summary>
/// Indicates that the specified member requires assembly files to be on disk.
/// </summary>
[ExcludeFromCodeCoverage]
[DebuggerNonUserCode]
[AttributeUsage(
validOn: Targets.Constructor |
Targets.Event |
Targets.Method |
Targets.Property,
Inherited = false)]
#if PolyUseEmbeddedAttribute
[global::Microsoft.CodeAnalysis.EmbeddedAttribute]
#endif
#if PolyPublic
public
#endif
sealed class RequiresAssemblyFilesAttribute :
Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="RequiresAssemblyFilesAttribute"/> class.
/// </summary>
public RequiresAssemblyFilesAttribute()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="RequiresAssemblyFilesAttribute"/> class
/// with the specified message.
/// </summary>
public RequiresAssemblyFilesAttribute(string message) =>
Message = message;
/// <summary>
/// Gets an optional message that contains information about the requirement for assembly files to be on disk.
/// </summary>
public string? Message { get; }
/// <summary>
/// Gets or sets an optional URL that contains more information about the member,
/// why it requires assembly files to be on disk, and what options a consumer has to deal with it.
/// </summary>
public string? Url { get; set; }
}
Loading
Loading