Thanks to visit codestin.com
Credit goes to github.com

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
8 changes: 4 additions & 4 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,13 @@
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>56393223b78d294bccec3101e79dc03e1b3cb683</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.Analyzers" Version="3.3.5-beta1.23225.2">
<Dependency Name="Microsoft.CodeAnalysis.Analyzers" Version="3.3.5-beta1.23251.1">
<Uri>https://github.com/dotnet/roslyn-analyzers</Uri>
<Sha>429d834b45bfa439b8ea3692cc8bb3d1805872f5</Sha>
<Sha>31e5d2773251838851d273edba1babcf60321f24</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0-preview.23225.2">
<Dependency Name="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0-preview.23251.1">
<Uri>https://github.com/dotnet/roslyn-analyzers</Uri>
<Sha>429d834b45bfa439b8ea3692cc8bb3d1805872f5</Sha>
<Sha>31e5d2773251838851d273edba1babcf60321f24</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.ApiCompat.Task" Version="8.0.100-preview.2.23107.1">
<Uri>https://github.com/dotnet/sdk</Uri>
Expand Down
4 changes: 2 additions & 2 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
</ItemGroup>
<PropertyGroup>
<!-- dotnet/roslyn-analyzers dependencies -->
<MicrosoftCodeAnalysisAnalyzersVersion>3.3.5-beta1.23225.2</MicrosoftCodeAnalysisAnalyzersVersion>
<MicrosoftCodeAnalysisNetAnalyzersVersion>8.0.0-preview.23225.2</MicrosoftCodeAnalysisNetAnalyzersVersion>
<MicrosoftCodeAnalysisAnalyzersVersion>3.3.5-beta1.23251.1</MicrosoftCodeAnalysisAnalyzersVersion>
<MicrosoftCodeAnalysisNetAnalyzersVersion>8.0.0-preview.23251.1</MicrosoftCodeAnalysisNetAnalyzersVersion>
<!-- dotnet/roslyn dependencies -->
<!--
These versions should not be used by any project that contributes to the design-time experience in VS, such as an analyzer, code-fix, or generator assembly.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,13 @@ private static Dictionary<int, List<X509ChainStatus>> GetStatusByIndex(SafeX509C
X509ChainStatus chainStatus = ValidationErrorToChainStatus(error);
Marshal.FreeHGlobal(error.Message);

if (!statusByIndex.ContainsKey(error.Index))
if (!statusByIndex.TryGetValue(error.Index, out List<X509ChainStatus>? value))
{
statusByIndex.Add(error.Index, new List<X509ChainStatus>());
value = new List<X509ChainStatus>();
statusByIndex.Add(error.Index, value);
}

statusByIndex[error.Index].Add(chainStatus);
value.Add(chainStatus);
}

return statusByIndex;
Expand Down