C#


ROSLYN.RELIABILITY.CA2015 : Do not define finalizers for types derived from MemoryManager<T> (C#)

See Roslyn-Detected C# Warning Classes for more information.

Summary

Adding a finalizer to a type derived from MemoryManager may permit memory to be freed while it is still in use by a Span.

This check corresponds to Roslyn rule CA2015. For full rule details, see the Microsoft website: CA2015.

Properties

Class Name Do not define finalizers for types derived from MemoryManager<T> (C#)
Significance reliability
Mnemonic ROSLYN.RELIABILITY.CA2015
Categories None
Availability Available for C# only.
Enabling Checks for this warning class are enabled by default. To disable them, add the following WARNING_FILTER rule to the project configuration file.
WARNING_FILTER += discard class="Do not define finalizers for types derived from MemoryManager<T> (C#)"

Relevant Configuration File Parameters

The following configuration file parameters affect checks for this warning class.