Skip to content

Inconsistent readonly struct System.Diagnostics.CounterSample on desktop #30014

@ericstj

Description

@ericstj

dotnet/corefx#24997 made this struct readonly, including in the nestandard2.0 reference assembly, but it is not readonly on desktop. Is that a problem? I don't think it should be, but I wanted to raise it as currently API Compat will flag this.

CannotRemoveAttribute : Attribute 'System.Runtime.CompilerServices.IsReadOnlyAttribute' exists on 'System.Diagnostics.CounterSample' in the compatible-assembly but not the this-assembly. 
TypeCannotChangeClassification : Type 'System.Diagnostics.CounterSample' is marked as readonly in the compatible-assembly so it must also be marked readonly in the this-assembly. 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions