Skip to content

Commit

Permalink
Adds back Enum constraint to Enum.GetNames<TEnum>() (#100844)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrajobst authored Apr 10, 2024
1 parent 807562e commit 91d3051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/System.Runtime/ref/System.Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2436,7 +2436,7 @@ protected Enum() { }
public override int GetHashCode() { throw null; }
public static string? GetName(System.Type enumType, object value) { throw null; }
public static string[] GetNames(System.Type enumType) { throw null; }
public static string[] GetNames<TEnum>() where TEnum : struct { throw null; }
public static string[] GetNames<TEnum>() where TEnum : struct, System.Enum { throw null; }
public static string? GetName<TEnum>(TEnum value) where TEnum : struct, System.Enum { throw null; }
public System.TypeCode GetTypeCode() { throw null; }
public static System.Type GetUnderlyingType(System.Type enumType) { throw null; }
Expand Down

0 comments on commit 91d3051

Please sign in to comment.