dotnet / dotnet/dotnet-api-docs

Incorrect example in CheckSignature(X509Certificate2Collection, Boolean)

Open
#2,790 3 comments 0 reactions 0 assignees View on GitHub
area-System.Security doc-bug example-request Pri3
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

The example for `CheckSignature(X509Certificate2Collection, Boolean)` in the System.Security.Cryptography.Pkcs/SignedCms.xml section uses the same code as the previous method (`CheckSignature(Boolean)`)
The examples for both methods link to `~/samples/snippets/csharp/VS_Snippets_WindowsServer/mpkcs_SignedCMS/cs/Program.cs#1)` which is an example for `CheckSignature(Boolean)`. There does not appear to be an example for `CheckSignature(X509Certificate2Collection, Boolean)` in the samples repo.

I think the fix is to first add the example to the samples repo, then point this documentation to that sample

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.