Skip to content

Commit

Permalink
Improve enum documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornen77 committed Jun 30, 2023
1 parent be09d86 commit 65c7945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libraries/System.Private.CoreLib/src/System/Enum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,9 @@ public bool HasFlag(Enum flag)
}
}

/// <summary>Returns a <see cref="bool"/> telling whether a given integral value, or its name as a string, exists in a specified enumeration.</summary>
/// <summary>Returns a <see cref="bool"/> telling whether a given integral value exists in a specified enumeration.</summary>
/// <typeparam name="TEnum">The type of the enumeration.</typeparam>
/// <param name="value">The value or name of a constant in <typeparamref name="TEnum"/>.</param>
/// <param name="value">The value in <typeparamref name="TEnum"/>.</param>
/// <returns><see langword="true"/> if a given integral value exists in a specified enumeration; <see langword="false"/>, otherwise.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static unsafe bool IsDefined<TEnum>(TEnum value) where TEnum : struct, Enum
Expand Down

0 comments on commit 65c7945

Please sign in to comment.