Skip to content

Fixes nullability of GetDisplayName return type#748

Merged
ascott18 merged 1 commit into
mainfrom
kdb/fixGetDisplayNameNullability
Jul 10, 2026
Merged

Fixes nullability of GetDisplayName return type#748
ascott18 merged 1 commit into
mainfrom
kdb/fixGetDisplayNameNullability

Conversation

@Keboo

@Keboo Keboo commented Jul 10, 2026

Copy link
Copy Markdown
Member

Description

Corrects the return type of the enum display name helper to reflect that it always returns a non-nullable string. This aligns the method signature with its actual behavior and cleans up unnecessary using directives.

Fixes #Issue_Number (if available)

Ensure that your pull request has followed all the steps below:

  • Code compilation
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary

The GetDisplayName extension method was marked as returning a nullable string, but the implementation always returns a string (falling back to the enum member name if no DisplayAttribute is present).
@ascott18
ascott18 merged commit 9688d06 into main Jul 10, 2026
17 checks passed
@ascott18
ascott18 deleted the kdb/fixGetDisplayNameNullability branch July 10, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants