Skip to content

Rules for Memory appear to be wrong #11411

@bencyoung

Description

@bencyoung

Rule #3 and #4 appear to be wrong where they place

string defensiveCopy = message.ToString();

I think these should be called before the task is run (outside the delegate), else the copy can still be corrupted by the time it is made...


Document Details

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    dotnet/svcwon't fixIssues that were closed as part of automated backlog grooming

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions