X Tutup
Skip to content

[.NET] Fix enum from/to Variant conversion#108527

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
raulsntos:dotnet/enum-variant-conversion
Sep 16, 2025
Merged

[.NET] Fix enum from/to Variant conversion#108527
Repiteo merged 1 commit intogodotengine:masterfrom
raulsntos:dotnet/enum-variant-conversion

Conversation

@raulsntos
Copy link
Member

@raulsntos raulsntos added this to the 4.6 milestone Jul 11, 2025
@raulsntos raulsntos requested a review from a team as a code owner July 11, 2025 18:11
- `typeof(T).IsEnum` and `typeof(T).GetEnumUnderlyingType()` are intrinsified in .NET 8+ so we can simplify the code in VariantUtils a bit.
- Consider whether enum `T` is signed in VariantUtils to preserve it.
@raulsntos raulsntos force-pushed the dotnet/enum-variant-conversion branch from cb9cfa9 to 8950744 Compare July 11, 2025 18:14
Copy link
Member

@paulloz paulloz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Looks good to me, thanks.

@Repiteo Repiteo merged commit f73d3db into godotengine:master Sep 16, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Sep 16, 2025

Thanks!

ProfessorOctopus pushed a commit to ProfessorOctopus/godot that referenced this pull request Sep 17, 2025
…ant-conversion

[.NET] Fix enum from/to Variant conversion
@raulsntos raulsntos deleted the dotnet/enum-variant-conversion branch September 17, 2025 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants

X Tutup