Skip to content

Commit 6d5f922

Browse files
committed
.
1 parent 63640f2 commit 6d5f922

21 files changed

+78
-58
lines changed

assemblySize.include.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
| | Empty Assembly | With Polyfill | Diff | Ensure | ArgumentExceptions | StringInterpolation | Nullability |
44
|----------------|----------------|---------------|-----------|-----------|--------------------|---------------------|-------------|
5-
| netstandard2.0 | 8.0KB | 225.0KB | +217.0KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
6-
| netstandard2.1 | 8.5KB | 177.0KB | +168.5KB | +12.0KB | +9.5KB | +9.0KB | +14.0KB |
7-
| net461 | 8.5KB | 231.5KB | +223.0KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
8-
| net462 | 7.0KB | 230.0KB | +223.0KB | +9.0KB | +6.5KB | +9.0KB | +14.0KB |
9-
| net47 | 7.0KB | 230.0KB | +223.0KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
10-
| net471 | 8.5KB | 230.0KB | +221.5KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
11-
| net472 | 8.5KB | 228.5KB | +220.0KB | +9.0KB | +6.5KB | +9.0KB | +14.0KB |
12-
| net48 | 8.5KB | 228.5KB | +220.0KB | +9.0KB | +6.5KB | +9.0KB | +14.0KB |
13-
| net481 | 8.5KB | 228.5KB | +220.0KB | +9.0KB | +6.5KB | +9.0KB | +14.0KB |
5+
| netstandard2.0 | 8.0KB | 226.0KB | +218.0KB | +9.5KB | +7.0KB | +9.5KB | +14.0KB |
6+
| netstandard2.1 | 8.5KB | 178.0KB | +169.5KB | +12.0KB | +9.5KB | +12.0KB | +14.0KB |
7+
| net461 | 8.5KB | 232.5KB | +224.0KB | +9.0KB | +6.5KB | +9.0KB | +14.0KB |
8+
| net462 | 7.0KB | 231.5KB | +224.5KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
9+
| net47 | 7.0KB | 231.0KB | +224.0KB | +9.0KB | +7.0KB | +9.5KB | +14.0KB |
10+
| net471 | 8.5KB | 231.0KB | +222.5KB | +9.5KB | +7.0KB | +9.5KB | +14.0KB |
11+
| net472 | 8.5KB | 230.0KB | +221.5KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
12+
| net48 | 8.5KB | 230.0KB | +221.5KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
13+
| net481 | 8.5KB | 230.0KB | +221.5KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
1414
| netcoreapp2.0 | 9.0KB | 208.5KB | +199.5KB | +9.0KB | +6.5KB | +9.0KB | +13.5KB |
1515
| netcoreapp2.1 | 9.0KB | 187.0KB | +178.0KB | +12.0KB | +10.0KB | +12.0KB | +17.0KB |
1616
| netcoreapp2.2 | 9.0KB | 187.0KB | +178.0KB | +12.0KB | +10.0KB | +12.5KB | +17.0KB |
@@ -29,15 +29,15 @@
2929

3030
| | Empty Assembly | With Polyfill | Diff | Ensure | ArgumentExceptions | StringInterpolation | Nullability |
3131
|----------------|----------------|---------------|-----------|-----------|--------------------|---------------------|-------------|
32-
| netstandard2.0 | 8.0KB | 340.4KB | +332.4KB | +16.7KB | +8.2KB | +14.0KB | +19.2KB |
33-
| netstandard2.1 | 8.5KB | 267.8KB | +259.3KB | +19.7KB | +11.2KB | +14.0KB | +19.7KB |
34-
| net461 | 8.5KB | 347.4KB | +338.9KB | +16.7KB | +8.2KB | +14.0KB | +19.2KB |
35-
| net462 | 7.0KB | 345.9KB | +338.9KB | +16.7KB | +8.2KB | +14.0KB | +19.7KB |
36-
| net47 | 7.0KB | 345.6KB | +338.6KB | +16.7KB | +8.2KB | +14.0KB | +19.2KB |
37-
| net471 | 8.5KB | 345.7KB | +337.2KB | +16.7KB | +8.2KB | +14.0KB | +19.2KB |
38-
| net472 | 8.5KB | 343.1KB | +334.6KB | +16.7KB | +8.2KB | +14.0KB | +19.7KB |
39-
| net48 | 8.5KB | 343.1KB | +334.6KB | +16.7KB | +8.2KB | +14.0KB | +19.7KB |
40-
| net481 | 8.5KB | 343.1KB | +334.6KB | +16.7KB | +8.2KB | +14.0KB | +19.7KB |
32+
| netstandard2.0 | 8.0KB | 341.5KB | +333.5KB | +17.2KB | +8.7KB | +14.5KB | +19.7KB |
33+
| netstandard2.1 | 8.5KB | 268.9KB | +260.4KB | +19.7KB | +11.2KB | +17.0KB | +19.7KB |
34+
| net461 | 8.5KB | 348.5KB | +340.0KB | +16.7KB | +8.2KB | +14.0KB | +19.7KB |
35+
| net462 | 7.0KB | 347.5KB | +340.5KB | +16.7KB | +8.2KB | +14.0KB | +19.2KB |
36+
| net47 | 7.0KB | 346.7KB | +339.7KB | +16.7KB | +8.7KB | +14.5KB | +19.7KB |
37+
| net471 | 8.5KB | 346.7KB | +338.2KB | +17.2KB | +8.7KB | +14.5KB | +19.7KB |
38+
| net472 | 8.5KB | 344.6KB | +336.1KB | +16.7KB | +8.2KB | +14.0KB | +19.2KB |
39+
| net48 | 8.5KB | 344.6KB | +336.1KB | +16.7KB | +8.2KB | +14.0KB | +19.2KB |
40+
| net481 | 8.5KB | 344.6KB | +336.1KB | +16.7KB | +8.2KB | +14.0KB | +19.2KB |
4141
| netcoreapp2.0 | 9.0KB | 314.8KB | +305.8KB | +16.7KB | +8.2KB | +14.0KB | +19.2KB |
4242
| netcoreapp2.1 | 9.0KB | 282.9KB | +273.9KB | +19.7KB | +11.7KB | +17.0KB | +22.7KB |
4343
| netcoreapp2.2 | 9.0KB | 282.9KB | +273.9KB | +19.7KB | +11.7KB | +17.5KB | +22.7KB |

src/Split/net461/XDocumentPolyfill.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ public static Task<XDocument> LoadAsync(Stream stream, LoadOptions options, Canc
3333
/// <summary>
3434
/// Asynchronously creates a new XDocument and initializes its underlying XML tree using the specified text reader, optionally preserving white space.
3535
/// </summary>
36-
public static Task<XDocument> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
36+
public static async Task<XDocument> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
3737
{
3838
cancellationToken.ThrowIfCancellationRequested();
39-
return Task.FromResult(XDocument.Load(textReader, options));
39+
var content = await textReader.ReadToEndAsync();
40+
return XDocument.Load(content, options);
4041
}
4142
/// <summary>
4243
/// Asynchronously creates a new XDocument and initializes its underlying XML tree using the specified text reader, optionally preserving white space.

src/Split/net461/XElementPolyfill.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ public static Task<XElement> LoadAsync(Stream stream, LoadOptions options, Cance
3333
/// <summary>
3434
/// Asynchronously creates a new XElement and initializes its underlying XML tree using the specified text reader, optionally preserving white space.
3535
/// </summary>
36-
public static Task<XElement> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
36+
public static async Task<XElement> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
3737
{
3838
cancellationToken.ThrowIfCancellationRequested();
39-
return Task.FromResult(XElement.Load(textReader, options));
39+
var content = await textReader.ReadToEndAsync();
40+
return XElement.Load(content, options);
4041
}
4142
/// <summary>
4243
/// Asynchronously creates a new XElement and initializes its underlying XML tree using the specified text reader, optionally preserving white space.

src/Split/net462/XDocumentPolyfill.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ public static Task<XDocument> LoadAsync(Stream stream, LoadOptions options, Canc
3333
/// <summary>
3434
/// Asynchronously creates a new XDocument and initializes its underlying XML tree using the specified text reader, optionally preserving white space.
3535
/// </summary>
36-
public static Task<XDocument> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
36+
public static async Task<XDocument> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
3737
{
3838
cancellationToken.ThrowIfCancellationRequested();
39-
return Task.FromResult(XDocument.Load(textReader, options));
39+
var content = await textReader.ReadToEndAsync();
40+
return XDocument.Load(content, options);
4041
}
4142
/// <summary>
4243
/// Asynchronously creates a new XDocument and initializes its underlying XML tree using the specified text reader, optionally preserving white space.

src/Split/net462/XElementPolyfill.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ public static Task<XElement> LoadAsync(Stream stream, LoadOptions options, Cance
3333
/// <summary>
3434
/// Asynchronously creates a new XElement and initializes its underlying XML tree using the specified text reader, optionally preserving white space.
3535
/// </summary>
36-
public static Task<XElement> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
36+
public static async Task<XElement> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
3737
{
3838
cancellationToken.ThrowIfCancellationRequested();
39-
return Task.FromResult(XElement.Load(textReader, options));
39+
var content = await textReader.ReadToEndAsync();
40+
return XElement.Load(content, options);
4041
}
4142
/// <summary>
4243
/// Asynchronously creates a new XElement and initializes its underlying XML tree using the specified text reader, optionally preserving white space.

src/Split/net47/XDocumentPolyfill.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ public static Task<XDocument> LoadAsync(Stream stream, LoadOptions options, Canc
3333
/// <summary>
3434
/// Asynchronously creates a new XDocument and initializes its underlying XML tree using the specified text reader, optionally preserving white space.
3535
/// </summary>
36-
public static Task<XDocument> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
36+
public static async Task<XDocument> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
3737
{
3838
cancellationToken.ThrowIfCancellationRequested();
39-
return Task.FromResult(XDocument.Load(textReader, options));
39+
var content = await textReader.ReadToEndAsync();
40+
return XDocument.Load(content, options);
4041
}
4142
/// <summary>
4243
/// Asynchronously creates a new XDocument and initializes its underlying XML tree using the specified text reader, optionally preserving white space.

src/Split/net47/XElementPolyfill.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ public static Task<XElement> LoadAsync(Stream stream, LoadOptions options, Cance
3333
/// <summary>
3434
/// Asynchronously creates a new XElement and initializes its underlying XML tree using the specified text reader, optionally preserving white space.
3535
/// </summary>
36-
public static Task<XElement> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
36+
public static async Task<XElement> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
3737
{
3838
cancellationToken.ThrowIfCancellationRequested();
39-
return Task.FromResult(XElement.Load(textReader, options));
39+
var content = await textReader.ReadToEndAsync();
40+
return XElement.Load(content, options);
4041
}
4142
/// <summary>
4243
/// Asynchronously creates a new XElement and initializes its underlying XML tree using the specified text reader, optionally preserving white space.

src/Split/net471/XDocumentPolyfill.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ public static Task<XDocument> LoadAsync(Stream stream, LoadOptions options, Canc
3333
/// <summary>
3434
/// Asynchronously creates a new XDocument and initializes its underlying XML tree using the specified text reader, optionally preserving white space.
3535
/// </summary>
36-
public static Task<XDocument> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
36+
public static async Task<XDocument> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
3737
{
3838
cancellationToken.ThrowIfCancellationRequested();
39-
return Task.FromResult(XDocument.Load(textReader, options));
39+
var content = await textReader.ReadToEndAsync();
40+
return XDocument.Load(content, options);
4041
}
4142
/// <summary>
4243
/// Asynchronously creates a new XDocument and initializes its underlying XML tree using the specified text reader, optionally preserving white space.

src/Split/net471/XElementPolyfill.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ public static Task<XElement> LoadAsync(Stream stream, LoadOptions options, Cance
3333
/// <summary>
3434
/// Asynchronously creates a new XElement and initializes its underlying XML tree using the specified text reader, optionally preserving white space.
3535
/// </summary>
36-
public static Task<XElement> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
36+
public static async Task<XElement> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
3737
{
3838
cancellationToken.ThrowIfCancellationRequested();
39-
return Task.FromResult(XElement.Load(textReader, options));
39+
var content = await textReader.ReadToEndAsync();
40+
return XElement.Load(content, options);
4041
}
4142
/// <summary>
4243
/// Asynchronously creates a new XElement and initializes its underlying XML tree using the specified text reader, optionally preserving white space.

src/Split/net472/XDocumentPolyfill.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ public static Task<XDocument> LoadAsync(Stream stream, LoadOptions options, Canc
3333
/// <summary>
3434
/// Asynchronously creates a new XDocument and initializes its underlying XML tree using the specified text reader, optionally preserving white space.
3535
/// </summary>
36-
public static Task<XDocument> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
36+
public static async Task<XDocument> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
3737
{
3838
cancellationToken.ThrowIfCancellationRequested();
39-
return Task.FromResult(XDocument.Load(textReader, options));
39+
var content = await textReader.ReadToEndAsync();
40+
return XDocument.Load(content, options);
4041
}
4142
/// <summary>
4243
/// Asynchronously creates a new XDocument and initializes its underlying XML tree using the specified text reader, optionally preserving white space.

0 commit comments

Comments
 (0)