Skip to content

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

@BasPaap

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions