Skip to content

Commit

Permalink
Adds back Enum constraint to Enum.GetNames<TEnum>() (dotnet#100844)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrajobst authored and matouskozak committed Apr 30, 2024
1 parent 92894d1 commit f206c33
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 f206c33

Please sign in to comment.