Skip to content

Add parameterless ctor and overload priority#1678

Merged
SimonCropp merged 1 commit intomainfrom
Add-parameterless-ctor-and-overload-priority
Feb 9, 2026
Merged

Add parameterless ctor and overload priority#1678
SimonCropp merged 1 commit intomainfrom
Add-parameterless-ctor-and-overload-priority

Conversation

@SimonCropp
Copy link
Member

Introduce a parameterless TempDirectory() that delegates to the existing constructor, and mark the bool-taking constructor with [OverloadResolutionPriority(1)]. This adds a convenient default ctor while making the intended overload resolution explicit; no change to behavior beyond the added API surface.

Introduce a parameterless TempDirectory() that delegates to the existing constructor, and mark the bool-taking constructor with [OverloadResolutionPriority(1)]. This adds a convenient default ctor while making the intended overload resolution explicit; no change to behavior beyond the added API surface.
@SimonCropp SimonCropp added this to the 31.12.3 milestone Feb 9, 2026
@SimonCropp SimonCropp merged commit 9879691 into main Feb 9, 2026
4 of 5 checks passed
@SimonCropp SimonCropp deleted the Add-parameterless-ctor-and-overload-priority branch February 9, 2026 04:04
This was referenced Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant