Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix
  • Loading branch information
JamesNK committed Jan 9, 2023
commit 715297ed09987877cf397cdbe9fcc888d1d413b0
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

using System;
using System.Dynamic;
using Microsoft.AspNetCore.Shared;
using Newtonsoft.Json;
using Xunit;

Expand Down Expand Up @@ -342,7 +343,7 @@ public string StringProperty

set
{
ArgumentNullException.ThrowIfNull(value);
ArgumentNullThrowHelper.ThrowIfNull(value);

stringProperty = value;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ internal sealed class CombinationsWithoutRepetition<T> : IEnumerator<T[]>

public CombinationsWithoutRepetition(T[] nElements, int p)
{
if (nElements.Length < p)
{
throw new ArgumentOutOfRangeException(nameof(p));
}
ArgumentOutOfRangeException.ThrowIfGreaterThan(p, nElements.Length);

_nElements = nElements;
_p = p;
Expand Down
11 changes: 10 additions & 1 deletion src/Shared/Shared.slnf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@
"solution": {
"path": "..\\..\\AspNetCore.sln",
"projects": [
"src\\Extensions\\Features\\src\\Microsoft.Extensions.Features.csproj",
"src\\Http\\Headers\\src\\Microsoft.Net.Http.Headers.csproj",
"src\\Http\\Http.Abstractions\\src\\Microsoft.AspNetCore.Http.Abstractions.csproj",
"src\\Http\\Http.Features\\src\\Microsoft.AspNetCore.Http.Features.csproj",
"src\\Http\\Http\\src\\Microsoft.AspNetCore.Http.csproj",
"src\\Http\\WebUtilities\\src\\Microsoft.AspNetCore.WebUtilities.csproj",
"src\\ObjectPool\\src\\Microsoft.Extensions.ObjectPool.csproj",
"src\\Servers\\Connections.Abstractions\\src\\Microsoft.AspNetCore.Connections.Abstractions.csproj",
"src\\Shared\\BrowserTesting\\src\\Microsoft.AspNetCore.BrowserTesting.csproj",
"src\\Shared\\test\\Shared.Tests\\Microsoft.AspNetCore.Shared.Tests.csproj"
"src\\Shared\\test\\Shared.Tests\\Microsoft.AspNetCore.Shared.Tests.csproj",
"src\\Testing\\src\\Microsoft.AspNetCore.Testing.csproj"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
<Compile Include="$(SharedSourceRoot)WebEncoders\**\*.cs" Link="Shared\WebEncoders\%(Filename)%(Extension)"/>
<Compile Include="$(SharedSourceRoot)QueryStringEnumerable.cs" />
<Compile Include="$(SharedSourceRoot)UrlDecoder\**\*.cs" Link="Shared\UrlDecoder\%(Filename)%(Extension)"/>
<Compile Include="$(SharedSourceRoot)ThrowHelpers\**\*.cs" Link="Shared\ThrowHelpers\%(Filename)%(Extension)"/>
<Compile Include="$(SharedSourceRoot)CallerArgument\**\*.cs" Link="Shared\CallerArgument\%(Filename)%(Extension)"/>
<Compile Include="$(SharedSourceRoot)TypeNameHelper\*.cs" />
<Compile Include="$(SharedSourceRoot)TaskToApm.cs" />
</ItemGroup>
Expand Down