Skip to content

CA1864 has incorrect title #51141

@xtqqczze

Description

@xtqqczze

The analyzer rule CA1864 currently has the title:

Prefer the ‘IDictionary.TryAdd(TKey, TValue)’ method

However, the IDictionary<TKey, TValue> interface does not define a TryAdd method. The TryAdd method exists only on the Dictionary<TKey, TValue> class (and a few other specific implementations).

This appears to be a typo or incorrect reference in the rule metadata or documentation. The intended title should likely be:

Prefer the ‘Dictionary.TryAdd(TKey, TValue)’ method

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions