dotnet / dotnet/dotnet-api-docs

`Enum.IsDefined<TEnum>(TEnum)`'s documentation still mentions enum value string

Open
#6,904 5 comments 0 reactions 2 assignees Claimed by @tannergooding View on GitHub
area-System.Runtime Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

`Enum.IsDefined(TEnum)`, while it only accepts an enum value, it still mentions about being able to determine whether an enum value is defined through its string name, which cannot happen in that overload.

The documentation was copied from its original, non-generic counterpart, which does implement it through an object. Well, it just wrongly refers to strings while only dealing with enum values.

# Screenshot

![VS metadata screenshot](https://user-images.githubusercontent.com/8298332/126011804-38dc8040-4022-455a-b5ea-74ce77e4adad.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.