Skip to content

CA1864 has incorrect title #51141

Open

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

Activity

  1. xtqqczze commented on Oct 7, 2025

    @xtqqczze
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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