Skip to content

The incorrect line of code is highlighted in the example. #23023

Closed

Description

@BasPaap

The article states:

Create an instance of a default implementation class by using a factory method on the base algorithm class, and refer to the base algorithm class. For example, see the highlighted line of code in the following example:

However, the highlighted line is:

using FileStream myStream = new FileStream("TestData.txt", FileMode.OpenOrCreate);

Which does not refer to cryptography classes, and does not use a factory method to create an instance. Instead, I think the highlighted line should be

using Aes aes = Aes.Create();

Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. Youssef1313 commented on Feb 26, 2021

    @Youssef1313
    Member

    This broke in #21043

  2. self-assigned this
    on Feb 26, 2021
  3. IEvangelist commented on Feb 26, 2021

    @IEvangelist
    Member

    Hi 👋 @BasPaap
    Thank you so much for posting this issue. We really appreciate it. I have a fix for this in #23025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions