Skip to content

Conversation

@0xced
Copy link
Contributor

@0xced 0xced commented Jun 7, 2023

Commit d3f4f5f introduced automatic conversion to FileInfo and DirectoryInfo but failed to properly handle the conversion if the value comes from the [DefaultValue] attribute.

Using both var (converter, stringConstructor) = GetConverter(...) and var (converter, _) = GetConverter(...) should have been a red flag!

@0xced 0xced force-pushed the fix-DefaultValue-FileInfo-DirectoryInfo branch from dcbad8e to ff6b956 Compare July 7, 2023 21:44
@FrankRay78 FrankRay78 self-assigned this Jul 11, 2023
@FrankRay78 FrankRay78 self-requested a review July 11, 2023 08:33
@FrankRay78
Copy link
Contributor

Thanks @0xced, I've added this to my list to review in the next few weeks.

Commit d3f4f5f introduced automatic conversion to FileInfo and DirectoryInfo but failed to properly handle the conversion if the value comes from the [DefaultValue] attribute.

Using both `var (converter, stringConstructor) = GetConverter(...)` and `var (converter, _) = GetConverter(...)` should have been a red flag!
@0xced 0xced force-pushed the fix-DefaultValue-FileInfo-DirectoryInfo branch from ff6b956 to 2848f0c Compare July 12, 2023 14:37
@FrankRay78 FrankRay78 merged commit 5296e56 into spectreconsole:main Sep 21, 2023
@FrankRay78
Copy link
Contributor

Really nice refactoring performed in this PR @0xced, big improvement to the readability of the codebase (along with the functionality too).

@0xced 0xced deleted the fix-DefaultValue-FileInfo-DirectoryInfo branch September 21, 2023 11:45
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.

2 participants