Skip to content
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

Implement a way to cast or convert from System.String to SemVer.SemanticVersion. #3

Open
aloisdg opened this issue Oct 6, 2015 · 1 comment

Comments

@aloisdg
Copy link

aloisdg commented Oct 6, 2015

Hello,

I would love to cast or convert from System.String to SemVer.SemanticVersion.

I don't know enough F#, so in C# it would be something like this:

public static explicit operator SemanticVersion(string str)
{
    return new SemanticVersion(str);
}

Cheers

@kolektiv
Copy link
Member

kolektiv commented Jan 1, 2016

That's a good suggestion. It's quite C# specific I think, but that's not a bad thing to support. I'll look at adding that when I get a moment shortly. Thanks for the suggestion, I'll keep this updated!

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

No branches or pull requests

2 participants