Enable explicit nullable definition for Core

This commit is contained in:
2024-10-31 13:01:54 +01:00
parent 25c8e9b5b0
commit eadd35ac09
9 changed files with 27 additions and 26 deletions

View File

@@ -13,7 +13,7 @@ namespace AMWD.Net.Api.Cloudflare
/// Gets the <see cref="EnumMemberAttribute.Value"/> of the <see cref="Enum"/> when available, otherwise the <see cref="Enum.ToString()"/>.
/// </summary>
/// <param name="value">The enum value.</param>
public static string GetEnumMemberValue(this Enum value)
public static string? GetEnumMemberValue(this Enum value)
{
var fieldInfo = value.GetType().GetField(value.ToString());
if (fieldInfo == null)