Skip to content

Added Uuid.FromGuid(Guid) to convert from System.Guid using its canonical text representation. - #85

Merged
amsga merged 1 commit into
masterfrom
feature/remove-variant-conversions
Nov 8, 2026
Merged

amsga merged 1 commit into
masterfrom
feature/remove-variant-conversions

Conversation

@amsga

@amsga amsga commented Nov 8, 2026

Copy link
Copy Markdown
Member

Added Uuid.FromGuid(Guid) to convert from System.Guid using its canonical text representation.
Changed Uuid.ToGuid() to use the canonical text representation explicitly, preserving the UUID value and variant bits.
Removed ToMicrosoftVariant() and ToRfc4122Variant(Guid) because they rewrote UUID variant bits and were not needed for Guid conversion.
Fixed UUIDv6 random Node IDs to set the required multicast bit.
Fixed UUIDv7 Method 1 to seed its counter per timestamp and handle counter exhaustion without wrapping UUID sort order backward.

…anonical text representation.

Changed `Uuid.ToGuid()` to use the canonical text representation explicitly, preserving the UUID value and variant bits.
Removed `ToMicrosoftVariant()` and `ToRfc4122Variant(Guid)` because they rewrote UUID variant bits and were not needed for `Guid` conversion.
Fixed UUIDv6 random Node IDs to set the required multicast bit.
Fixed UUIDv7 Method 1 to seed its counter per timestamp and handle counter exhaustion without wrapping UUID sort order backward.
@sonarqubecloud

sonarqubecloud Bot commented Nov 8, 2026

Copy link
Copy Markdown

@amsga
amsga merged commit 933ff95 into master Nov 8, 2026
12 checks passed
@amsga
amsga deleted the feature/remove-variant-conversions branch November 8, 2026 06:20
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.

1 participant