Skip to content

Add support for DateOnly and TimeOnly on .Net 6 (#1732). #1734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 10, 2022
Merged

Add support for DateOnly and TimeOnly on .Net 6 (#1732). #1734

merged 5 commits into from
May 10, 2022

Conversation

RobThree
Copy link
Contributor

@RobThree RobThree commented May 9, 2022

This PR adds support for DateOnly and TimeOnly data types in the ArgumentConverter.

@dnfadmin
Copy link

dnfadmin commented May 9, 2022

CLA assistant check
All CLA requirements met.

* Add support of IPAddress and IPEndpoint arguments

* IPEndPoint.TryParse isn't supported until .Net 7

* TryParse should work from .Net Core >= 3.1

* Add missing [Fact] attributes

* Remove nullable IPAddress/IPEndPoint tests
@@ -96,7 +110,7 @@ internal static partial class ArgumentConverter

[typeof(FileSystemInfo)] = (string path, out object? value) =>
{
if (String.IsNullOrEmpty(path))
if (string.IsNullOrEmpty(path))
Copy link
Contributor

Choose a reason for hiding this comment

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

Good call on this change.

@jonsequitur
Copy link
Contributor

Could you please rebase this?

@RobThree
Copy link
Contributor Author

Could you please rebase this?

I tried but I think I messed up somewhere? Should I close this PR and create a new?

@jonsequitur jonsequitur merged commit 4dcee4d into dotnet:main May 10, 2022
@jonsequitur jonsequitur modified the milestone: 2.0 GA May 10, 2022
@RobThree RobThree deleted the dateonly-and-timeonly branch May 10, 2022 23:08
@RobThree
Copy link
Contributor Author

Could you please rebase this?

I tried but I think I messed up somewhere? Should I close this PR and create a new?

Did it work @jonsequitur ? I hope you didn't have too much work with it?

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