API

CryptographicOperations.ZeroMemory

Clears a mutable byte span; does not guarantee every copy of a secret is erased.

Formal Syntax & Structure

csharp syntaxcsharp
CryptographicOperations.ZeroMemory(key)

Working Example

Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.CryptographicOperations.ZeroMemory(key)
C# & .NET Reference